Specifies a verify for a void method with the given
methodName,
optionally specifying arguments for the method call. Use in conjuntion with the default
Loose.
Namespace: Moq.Protected
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)
Syntax
Parameters
- methodName
- Type: System..::..String
The name of the void method to be verified.
- times
- Type: Moq..::..Times
The number of times a method is allowed to be called.
- args
- Type: array<System..::..Object>[]()[][]
The optional arguments for the invocation. If argument matchers are used,
remember to use ItExpr rather than It.
Exceptions
See Also