Mock(T) Constructor

Moq

Collapse image Expand Image Copy image CopyHover image
Initializes an instance of the mock with default behavior.

Namespace: Moq
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
public Mock()

Examples

CopyC#
var mock = new Mock<IFormatProvider>();

See Also