Relative Content

Tag Archive for iosswiftxctest

assertionFailure causes test to crash

my test keeps crashing, it’s an assertionFailure in onChange. But that’s expected. the onChange method should receive a snapshot which conforms to the protocol. Is there a way to keep this test while still keeping the assertionFailure in onChange, which triggers in a guard statement if the it doesnt conform to the protocol?