Class AllowedMockableTypes
Contains a list of types that are exempt from sanity checks when mocking.
Inheritance
Inherited Members
Namespace: Telerik.JustMock.Setup
Assembly: Telerik.JustMock.dll
Syntax
public static class AllowedMockableTypes
Remarks
It might not be safe to mock some types, but sometimes other types might be safe but come out as false positives in the sanity checks. Add these types to the list to try to mock them anyway. Mind that mocking certain types will not be possible, even if they're added to this list. Also mind that
Fields
List
The collection of types that are exempt from sanity checks when mocking.
Declaration
public static readonly ICollection<Type> List
Field Value
System.Collections.Generic.ICollection<System.Type>
|
Methods
Add<T>()
Adds a type to the list of exemptions. You can also add a type by calling
AllowedMockableTypes.List.Add(typeof(T)).
if you can't or don't want to use this helper method.
Declaration
public static void Add<T>()
Type Parameters
T
The type to add. |