Mock(T) Constructor

Moq 2.6

Overload List

  NameDescription
Mock<(Of <(T>)>)()()()
Initializes an instance of the mock with default behavior.
Mock<(Of <(T>)>)(MockBehavior)
Initializes an instance of the mock with the specified behavior.
Mock<(Of <(T>)>)(array<Object>[]()[])
Initializes an instance of the mock with default behavior and with the given constructor arguments for the class. (Only valid when T is a class)
Mock<(Of <(T>)>)(MockBehavior, array<Object>[]()[])
Initializes an instance of the mock with a specific behavior with the given constructor arguments for the class.

See Also