XCTAssertNil definition error in Chpt. 2

Maybe I’m reading this wrong but there seems to be an error in the definition in chapter 2 regarding XCTAssertNil.

Page 28.

“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”

Excerpt From
iOS Test-Driven Development by Tutorials
By Joshua Greene
This material may be protected by copyright.

@jrg.developer Can you please help with this when you get a chance? Thank you - much appreciated! :]