Class FastInvocationMatcher
Describes a parsed method invocation with FastMoq argument matchers.
Inherited Members
Namespace: FastMoq.Providers
Assembly: FastMoq.Abstractions.dll
Syntax
public sealed class FastInvocationMatcher
Properties
Arguments
Gets the parsed argument matchers in parameter order.
Declaration
public IReadOnlyList<FastArgumentMatcher> Arguments { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<FastArgumentMatcher> |
Method
Gets the target method represented by the parsed invocation.
Declaration
public MethodInfo Method { get; }
Property Value
| Type | Description |
|---|---|
| MethodInfo |
Methods
Matches(MethodInfo, IReadOnlyList<object?>)
Determines whether the supplied method and argument values satisfy this invocation matcher.
Declaration
public bool Matches(MethodInfo method, IReadOnlyList<object?> actualArguments)
Parameters
| Type | Name | Description |
|---|---|---|
| MethodInfo | method | The runtime method to compare. |
| IReadOnlyList<object> | actualArguments | The runtime argument values to compare. |
Returns
| Type | Description |
|---|---|
| bool |