TestUtilitiesCreateMockInstanceT Method |
Creates a Moq stub for an object but does not register it with the class factory.
Namespace: Test.FrameworkAssembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Mock<T> CreateMockInstance<T>()
where T : class
Public Shared Function CreateMockInstance(Of T As Class) As Mock(Of T)
public:
generic<typename T>
where T : ref class
static Mock<T>^ CreateMockInstance()
static member CreateMockInstance : unit -> Mock<'T> when 'T : not struct
Type Parameters
- T
Return Value
Type:
MockTSee Also