add test to reproduce issue
This commit is contained in:
parent
3204bbb5cb
commit
d5b59756ef
|
|
@ -7,6 +7,14 @@
|
|||
//
|
||||
|
||||
import XCTest
|
||||
@testable import SKPhotoBrowser
|
||||
|
||||
|
||||
class FakeSKPhotoBrowser : SKPhotoBrowser {
|
||||
override func setup () {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class SKPhotoBrowserTests: XCTestCase {
|
||||
|
||||
|
|
@ -19,12 +27,30 @@ class SKPhotoBrowserTests: XCTestCase {
|
|||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
|
||||
func testExample() {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
func testSKPhotoArray() {
|
||||
var images = [SKPhoto]()
|
||||
let photo = SKPhoto.photoWithImage(UIImage())// add some UIImage
|
||||
images.append(photo)
|
||||
let _ = FakeSKPhotoBrowser(photos: images)
|
||||
}
|
||||
|
||||
func testSKLocalPhotoArray() {
|
||||
var images = [SKLocalPhoto]()
|
||||
let photo = SKLocalPhoto.photoWithImageURL("")
|
||||
images.append(photo)
|
||||
let _ = FakeSKPhotoBrowser(photos: images)
|
||||
}
|
||||
|
||||
func testSKPhotoProtocolArray() {
|
||||
var images = [SKPhotoProtocol]()
|
||||
let photo = SKPhoto.photoWithImage(UIImage())// add some UIImage
|
||||
images.append(photo)
|
||||
let _ = FakeSKPhotoBrowser(photos: images)
|
||||
}
|
||||
|
||||
|
||||
func testPerformanceExample() {
|
||||
// This is an example of a performance test case.
|
||||
self.measureBlock {
|
||||
|
|
|
|||
Loading…
Reference in New Issue