Class FakeItEasyMockCollectionExtensions
- Namespace
- Mokkit.Containers.FakeItEasy
- Assembly
- Mokkit.Containers.FakeItEasy.dll
Convenience registration methods that create FakeItEasy fakes for the mock collection.
public static class FakeItEasyMockCollectionExtensionsInheritance
Inherited Members
Methods
AddFake<T>(IMockCollection<object>)
Registers a fake for T, throwing if one is already registered.
public static IMockCollection<object> AddFake<T>(this IMockCollection<object> mocks) where T : classParameters
mocksIMockCollection<object>-
The mock collection.
Returns
- IMockCollection<object>
-
The collection for fluent chaining.
Type Parameters
T-
The type to fake.
TryAddFake<T>(IMockCollection<object>)
Registers a fake for T only if one is not already registered.
public static IMockCollection<object> TryAddFake<T>(this IMockCollection<object> mocks) where T : classParameters
mocksIMockCollection<object>-
The mock collection.
Returns
- IMockCollection<object>
-
The collection for fluent chaining.
Type Parameters
T-
The type to fake.