Maybe I’m reading this wrong but there seems to be an error in the definition in chapter 2 regarding XCTAssertNil.
“You then attempt to instantiate a new instance of CashRegister, which you pass into XCTAssertNil. This is a test expression that asserts whatever passed to it is not nil. If it actually is nil, the test will be marked as failed”
iOS Test-Driven Development by Tutorials
By Joshua Greene
This material may be protected by copyright.