Marks the expectation as verifiable, meaning that a call
to Verify()()() will check if this particular
expectation was met.
Namespace:
Moq.LanguageAssembly: Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)
Syntax
| C# |
|---|
void Verifiable() |
Examples
The following example marks the expectation as verifiable:
CopyC#
mock.Expect(x => x.Execute("ping")) .Returns(true) .Verifiable();