







![]() |
Moq |
Mock<(Of <(T>)>) Constructor (MockBehavior) |
Mock<(Of <(T>)>) Class Example See Also Send Feedback |
Initializes an instance of the mock with the specified behavior.
Namespace:
Moq
Assembly:
Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)
Syntax
C# |
---|
public Mock( MockBehavior behavior ) |
Parameters
- behavior
- Type: Moq..::.MockBehavior
Behavior of the mock.
Examples

var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);