The MockManager type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | CalledCounter(String, String) |
Return the amount of times a method has been called
|
![]() ![]() | CalledCounter(Type, String) |
Return the amount of times a method has been called
|
![]() ![]() | CalledCounter(Type, String, Type) |
Return the amount of times a method has been called
|
![]() ![]() | CalledCounterTMockType(String) |
Return the amount of times a method has been called
|
![]() ![]() | CalledCounterTMockType(String, Type) |
Return the amount of times a method has been called
|
![]() ![]() | CalledIndexerCounter |
Return the amount of times an indexer has been called
|
![]() ![]() | CalledPropertyGetCounter |
Return the amount of times a property has been called
|
![]() ![]() | CalledPropertySetCounter |
Return the amount of times a property has been set
|
![]() ![]() | ClearAll |
Clears all expectations and mocks
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetInstanceMocks(Type) |
Returns a list of instance mocks of a type
|
![]() ![]() | GetInstanceMocksTMockedType |
Returns all instance mocks for TMockedType
|
![]() ![]() | GetMockAll(Type) |
Returns the mock for all instances of a type, or null if it is not mocked
|
![]() ![]() | GetMockAllTMockedType |
Returns all instances mock of TMockedType
|
![]() ![]() | GetMockedTypes |
Returns all types that are mocked
|
![]() ![]() ![]() | GetMockOfT |
Returns the mock associated with a specific instance
|
![]() ![]() | GetMocks |
Returns all mocks
|
![]() ![]() | GetMocks(Type) |
Returns all mocks for a type
|
![]() ![]() | GetMocksTMockedType |
Returns all mocks for TMockedType
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | Init |
Defaults to collect call information ONLY for mocked classes and
not verbose
|
![]() ![]() | Init(Boolean) |
Manually set Call Collection and verbose behaviors
|
![]() ![]() | IsTypeMocked(Type) |
Check if a type is mocked (with MockAll or instance mocks)
|
![]() ![]() | IsTypeMockedTMockedType |
Check if a type is mocked (with MockAll or instance mocks)
|
![]() ![]() | IsTypeMockedAll(Type) |
Check if a type is mocked for all instances
|
![]() ![]() | IsTypeMockedAllTMockedType |
Check if a type is mocked for all instances
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Mock(Type) |
Automatically mock constructors as well, i.e. constructor code will NOT be called
|
![]() ![]() | Mock(Type, Boolean) | Obsolete.
Create a new Type Mock to intercept and mock calls made on the next instance of a type,
with ability to decide if Constructors should be mocked or not (default is to mock constructors)
|
![]() ![]() | Mock(Type, Constructor) |
Create a new Type Mock to intercept and mock calls made on the next instance of a type,
with ability to define the scope of mocked Constructors (default is to mock all constructors)
|
![]() ![]() | MockTMockedType |
Intercept and mock calls made on the next new instance of TMockedType.
|
![]() ![]() | MockTMockedType(Constructor) |
Intercept and mock calls made on the next new instance of TMockedType, with constructor behavior control
|
![]() ![]() | MockAll(Type) |
Automatically mock constructors as well, i.e. constructor code will NOT be called
|
![]() ![]() | MockAll(Type, Boolean) |
Create a new Type Mock for all instances of the type, with ability to decide if Constructors should be mocked or not
|
![]() ![]() | MockAll(Type, Constructor) |
Create a new Type Mock for all instances of the type, with ability to to define the scope of mocked Constructors (default is to mock all constructors)
|
![]() ![]() | MockAllTMockedType |
Intercept and mock calls made on the all instance of TMockedType.
|
![]() ![]() | MockAllTMockedType(Constructor) |
Intercept and mock calls made on the all instance of TMockedType, with constructor behavior control
|
![]() ![]() | MockGlobalFunctions |
Use this type when mocking global functions
|
![]() ![]() | MockObject(Type, Boolean) | Obsolete.
Create a new Dynamic Mock Object with ability to decide if Constructors should be mocked or not
|
![]() ![]() ![]() | MockObject(Type, Object) |
Automatically mock constructors as well, i.e. constructor code will NOT be called
|
![]() ![]() | MockObject(Type, Constructor, Object) |
Create a new Dynamic Mock Object with ability to define the scope of mocked Constructors (default is to mock all constructors)
|
![]() ![]() | MockObjectTMockedType |
Create an instance of TMockedType and mock calls made on the instance.
|
![]() ![]() | MockObjectTMockedType(Object) |
Create an instance of TMockedType and mock calls made on the instance, while sending constructor arguments
|
![]() ![]() | MockObjectTMockedType(Constructor) |
Create an instance of TMockedType and mock calls made on the instance, while controlling the constructor
|
![]() ![]() | MockObjectTMockedType(Constructor, Object) |
Create an instance of TMockedType and mock calls made on the instance, while controlling the constructor and sending constructor arguments
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | Verify |
Verify all mocked types
|
![]() ![]() | VerifyWithTimeout |
Wait with timeout (5 seconds) for all expected methods to be called
|
![]() ![]() | VerifyWithTimeout(Int32) |
Wait with timeout (im milliseconds) for all expected methods to be called
|
See Also