Last active
June 22, 2017 00:57
-
-
Save joesus/5666dac352d2ae364d5289f5947614e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTest | |
@testable import KittenAdoptR | |
class KittenDataSourceTests: XCTestCase { | |
var dataSource: KittenDataSource! | |
override func setUp() { | |
super.setUp() | |
dataSource = KittenDataSource() | |
for number in 0..<20 { | |
let kitten = Kitten(name: "Kitten: \(number)") | |
dataSource.kittens.append(kitten) | |
} | |
} | |
func testDataSourceHasKittens() { | |
XCTAssertEqual(dataSource.kittens.count, 20, | |
"DataSource should have correct number of kittens") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment