Skip to content

Instantly share code, notes, and snippets.

@an-indya
Created May 13, 2018 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an-indya/1b9072c6ba1173985561ea9849f8bfbe to your computer and use it in GitHub Desktop.
Save an-indya/1b9072c6ba1173985561ea9849f8bfbe to your computer and use it in GitHub Desktop.
import XCTest
@testable import BookCatalog
class BookCatalogTests: XCTestCase {
func testpopulateBookModel() {
let masterVC = MasterViewController()
masterVC.populateBookModel()
XCTAssert(masterVC.bookObjects.count == masterVC.books.count, "Book objects are \(masterVC.bookObjects.count) and books are \(masterVC.books.count) in number")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment