Mock(T) Constructor

Moq

Collapse imageExpand ImageCopy imageCopyHover image

Overload List

  NameDescription
Public methodMock<(Of <(<'T>)>)>()()()()
Initializes an instance of the mock with default behavior.
Public methodMock<(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)
Public methodMock<(Of <(<'T>)>)>(MockBehavior)
Initializes an instance of the mock with the specified behavior.
Public methodMock<(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