TestUtilitiesCreateMockImplementationT Method |
Creates a Moq stub for an object and registers it with the class factory. The instance returned by the method
is the one the code under test will always receive when it asks for an instantiation of the interface.
Namespace: Test.FrameworkAssembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Mock<T> CreateMockImplementation<T>()
where T : class
Public Shared Function CreateMockImplementation(Of T As Class) As Mock(Of T)
public:
generic<typename T>
where T : ref class
static Mock<T>^ CreateMockImplementation()
static member CreateMockImplementation : unit -> Mock<'T> when 'T : not struct
Type Parameters
- T
Return Value
Type:
MockTSee Also