This section covers features from Telerik JustMock used in basic testing scenarios like:
- Mocking interfaces
- Mocking virtual and abstract methods and properties
- Generic mocking
- Sequential mocking
- Recursive mocking
The topics in this section describe how to fake instances of objects, control method/property behavior, assert calls, raise events, throw exceptions from mocks,
use ref and out parameters.
In This Section
Arrange Act Assert
Describes the Arrange Act Assert pattern.
Describes the Mock class, how to use it in your unit tests and commonly used methods in the
Arrange step like CallOriginal, DoInstead,
DoNothing, Initialize, MustBeCalled,
Returns, and Throws.
Describes how to mock generic types and members.
Describes what are strict and loose mocks.
Describes how to mock properties' set and get operations as well as indexers.
Describes how to determine how many times a call has occurred.
Describes how to use matchers to satisfy an argument type or expected value range condition in a mock.
Describes how to use fluent assertions.
Describes how to return different values on the same or different consecutive calls to one and the same type.
Describes how to mock members that are obtained as a result of "chained" calls on a mock.
Mock Internal Types Via Proxy
Describes how to mock internal types via proxy.
Describes how to use automocking.