verifyNever top-level property Null safety

_Verify verifyNever

Verify that a method on a mock object was never called with the given arguments.

Call a method on a mock object within a verifyNever call. For example:

cat.eatFood("chicken");
verifyNever(() => cat.eatFood("fish"));

Mocktail will pass the current test case, as cat.eatFood has not been called with "chicken".

Implementation

_Verify get verifyNever => _makeVerify(true);