Overloaded. Verifies that a method was not called regardless of parameters.
Namespace: TypeMock.ArrangeActAssert.Fluent
Assembly: Typemock.ArrangeActAssert (in Typemock.ArrangeActAssert.dll) Version: 9.4.1.0 (9.4.1.0)
Syntax
Parameters
- func
- Type: SystemFuncT
A method returning a value in the form of a Lambda Expression that we want to verify if was called.
Type Parameters
- T
Exceptions
| Exception | Condition |
|---|---|
| VerifyException | Thrown if the method, or chain of methods was called at least once. |
Remarks
Examples
[TestMethod] [Isolated] public void VerifyMethodWasNotCalled() { RealLogger fake = Isolate.Fake.Instance<RealLogger>(); fake.Increment(); // This verification should fail Isolate.Verify.WasNotCalled(() => fake.Increment()); }
See Also