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
|
![]() ![]() | CalledCounter<TMockType>(String) |
Return the amount of times a method has been called
|
![]() ![]() | CalledCounter<TMockType>(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
|
![]() ![]() | GetInstanceMocks<TMockedType>() |
Returns all instance mocks for TMockedType
|
![]() ![]() | GetMockAll(Type) |
Returns the mock for all instances of a type, or null if it is not mocked
|
![]() ![]() | GetMockAll<TMockedType>() |
Returns all instances mock of TMockedType
|
![]() ![]() | GetMockedTypes |
Returns all types that are mocked
|
![]() ![]() ![]() | GetMockOf<T> |
Returns the mock associated with a specific instance
|
![]() ![]() | GetMocks() |
Returns all mocks
|
![]() ![]() | GetMocks(Type) |
Returns all mocks for a type
|
![]() ![]() | GetMocks<TMockedType>() |
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)
|
![]() ![]() | IsTypeMocked<TMockedType>() |
Check if a type is mocked (with MockAll or instance mocks)
|
![]() ![]() | IsTypeMockedAll(Type) |
Check if a type is mocked for all instances
|
![]() ![]() | IsTypeMockedAll<TMockedType>() |
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)
|
![]() ![]() | Mock<TMockedType>() |
Intercept and mock calls made on the next new instance of TMockedType.
|
![]() ![]() | Mock<TMockedType>(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)
|
![]() ![]() | MockAll<TMockedType>() |
Intercept and mock calls made on the all instance of TMockedType.
|
![]() ![]() | MockAll<TMockedType>(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)
|
![]() ![]() | MockObject<TMockedType>() |
Create an instance of TMockedType and mock calls made on the instance.
|
![]() ![]() | MockObject<TMockedType>(Object[]) |
Create an instance of TMockedType and mock calls made on the instance, while sending constructor arguments
|
![]() ![]() | MockObject<TMockedType>(Constructor) |
Create an instance of TMockedType and mock calls made on the instance, while controlling the constructor
|
![]() ![]() | MockObject<TMockedType>(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