MockExtensions class

April 20, 2021 · View on GitHub

Extensions for Mock objects.

public static class MockExtensions

Public Members

namedescription
static SetupWithAny<T>(…)Specifies a setup on the mocked type for a call to a void method. All parameters are filled with IsAny according to the parameter's type.
static SetupWithAny<T,TResult>(…)Specifies a setup on the mocked type for a call to a non-void (value-returning) method. All parameters are filled with IsAny according to the parameter's type.

See Also