Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func testKittenCellHasDisclosureIndicatorWhenAdoptable() {
- dataSource.kittens.first?.isAdoptable = true
- guard let firstKitten = dataSource.kittens.first,
- firstKitten.isAdoptable else {
- return XCTFail("First kitten in dataSource should be adoptable")
- }
- let cell = dataSource.tableView(tableView, cellForRowAt: IndexPath(row: 0, section: 0))
- XCTAssertEqual(cell.accessoryType, .disclosureIndicator,
- "Cell should have disclosure indicator for adoptable kitten")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement