![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](icons/copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() |
Moq |
Mock<(Of <(<'T>)>)>..::..VerifySet Method (Action<(Of <(<'T>)>)>, Times, String) |
Mock<(Of <(<'T>)>)> Class See Also Send Feedback |
Verifies that a property was set on the mock, specifying
a failure message.
Namespace: Moq
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)
Syntax
Parameters
- setterExpression
- Type: System..::..Action<(Of <(<'T>)>)>
Expression to verify.
- times
- Type: Moq..::..Times
The number of times a method is allowed to be called.
- failMessage
- Type: System..::..String
Message to show if verification fails.
Exceptions
Exception | Condition |
---|---|
Moq..::..MockException | The invocation was not call the times specified by times. |