Telerik.JustMock

Class
Arg

Allows specification of a matching condition for an argument, rather a specific value.

An implementation detail that allows passing ref arguments in C#

Class
Args

Specifies Mock.Assert to ignore any specific arguments.

Defines the expectation for a specific method.

A list of attributes that must not be replicated when building a proxy. JustMock tries to copy all attributes from the types and methods being proxied, but that is not always a good idea for every type of attribute. Add additional attributes to this list that prevent the proxy from working correctly.

Specifies the behavior of the mock.

Defines the behavior of target constructor.

Provides introspection and tracing capabilities for ease of debugging failing tests.

Class
Expr

Provides utility methods for simplifying the creation of expression trees used in mocking scenarios. This class offers a fluent API for building property access expressions that can be used to configure mock behavior for property getters and setters.

Interface
IArgExpr

Allows specification of a matching condition for an argument for a non-public method, rather a specific value.

Gives access to the non-public ref returns members of a type or instance.

Defines methods for building LINQ expressions that represent property get and set operations. This interface is used to facilitate setting up expectations and verifications for property access. It provides a strongly-typed approach to creating expressions that can be used to intercept, verify, and emulate property behavior during testing.

Creates handles used for mocking ref returns, used with conjunction with Returns(Delegate)

Handles local refs returns used for mocking, used with conjunction with WithValue<T>(T)

Class
Mock

Entry point for setting up and asserting mocks.

Class
Occurs

Defines filters for calls , used in conjunction with assert.

Class
Param

Defines parameter placeholders when the parameter type is one of the commonly occurring types, e.g. int. Example: Mock.Create<IEqualityComparer>(me => me.Equals(Arg.AnyObject, Arg.AnyObject) == Equals(Param._1, Param._2)); In the example, Param._1 and Param._2 are implicitly converted to System.Object.

Defines parameter placeholders when the parameter type is T.

Gives access to the non-public members of a type or instance. This class provides functionality similar to the one that exists in regular reflection classes with the added benefit that it can bypass essential security checks related to accessing non-public members through reflection.

Defines the kind of range value to consider.

Defines behavior of the static constructor.

Class
Wait

Specifies the duration to wait before executing an event.

Not finding the help you need?
Contact Support