Class FastArgumentMatcher
Describes a single parsed FastMoq argument matcher.
Inheritance
FastArgumentMatcher
Assembly: FastMoq.Abstractions.dll
Syntax
public sealed class FastArgumentMatcher
Properties
ArgumentType
Gets the runtime argument type that this matcher targets.
Declaration
public Type ArgumentType { get; }
Property Value
ExpectedValue
Gets the exact value expected by the matcher when Kind is Exact.
Declaration
public object? ExpectedValue { get; }
Property Value
Kind
Declaration
public FastArgumentMatcherKind Kind { get; }
Property Value
PredicateExpression
Gets the predicate expression used by the matcher when Kind is Predicate.
Declaration
public LambdaExpression? PredicateExpression { get; }
Property Value
Methods
Matches(object?)
Evaluates the matcher against the supplied runtime value.
Declaration
public bool Matches(object? actualValue)
Parameters
| Type |
Name |
Description |
| object |
actualValue |
The runtime value to test.
|
Returns
| Type |
Description |
| bool |
true when the value satisfies the matcher; otherwise false.
|
Extension Methods