Class FastArg
Provider-neutral argument matcher helpers for FastMoq expression-based setup and verification flows.
Assembly: FastMoq.Abstractions.dll
Syntax
public static class FastArg
Methods
AnyExpression<T>()
Matches any expression argument of type Expression<Func<T, bool>>.
Declaration
public static Expression<Func<T, bool>> AnyExpression<T>()
Returns
Type Parameters
Any<T>()
Matches any argument of type T.
Declaration
Returns
Type Parameters
IsNotNull<T>()
Matches a non-null argument.
Declaration
public static T IsNotNull<T>()
Returns
Type Parameters
IsNull<T>()
Declaration
public static T IsNull<T>()
Returns
Type Parameters
Is<T>(Expression<Func<T, bool>>)
Matches an argument when the supplied predicate returns true.
Declaration
public static T Is<T>(Expression<Func<T, bool>> predicate)
Parameters
| Type |
Name |
Description |
| Expression<Func<T, bool>> |
predicate |
The predicate used to evaluate the runtime argument.
|
Returns
Type Parameters