Class MoqMockAdapter<T>
Wraps a typed Moq mock in the provider-neutral FastMoq abstraction.
Inherited Members
Namespace: FastMoq.Providers.MoqProvider
Assembly: FastMoq.Provider.Moq.dll
Syntax
public sealed class MoqMockAdapter<T> : IFastMock<T>, IFastMock where T : class
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
MoqMockAdapter(Mock<T>)
Initializes a new adapter for the supplied Moq mock.
Declaration
public MoqMockAdapter(Mock<T> inner)
Parameters
| Type | Name | Description |
|---|---|---|
| Mock<T> | inner |
Properties
Inner
Gets the wrapped Moq mock.
Declaration
public Mock<T> Inner { get; }
Property Value
| Type | Description |
|---|---|
| Mock<T> |
Instance
Gets the mocked instance.
Declaration
public T Instance { get; }
Property Value
| Type | Description |
|---|---|
| T |
MockedType
Gets the type being mocked.
Declaration
public Type MockedType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
NativeMock
Gets the provider-specific underlying mock object.
Declaration
public object NativeMock { get; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
Reset()
Resets mock state when supported by the provider wrapper.
Declaration
public void Reset()