FastMoq
Search Results for

    Show / Hide Table of Contents

    Class FastArgumentMatcher

    Describes a single parsed FastMoq argument matcher.

    Inheritance
    object
    FastArgumentMatcher
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastMoq.Providers
    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
    Type Description
    Type

    ExpectedValue

    Gets the exact value expected by the matcher when Kind is Exact.

    Declaration
    public object? ExpectedValue { get; }
    Property Value
    Type Description
    object

    Kind

    Gets the matcher kind.

    Declaration
    public FastArgumentMatcherKind Kind { get; }
    Property Value
    Type Description
    FastArgumentMatcherKind

    PredicateExpression

    Gets the predicate expression used by the matcher when Kind is Predicate.

    Declaration
    public LambdaExpression? PredicateExpression { get; }
    Property Value
    Type Description
    LambdaExpression

    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

    ObjectExtensions.RaiseIfNull<T>(T?, string?, string?, int?, string?)
    TestClassExtensions.GetFieldValue<TObject>(TObject, string, TObject?)
    TestClassExtensions.GetField<TObject>(TObject, string)
    TestClassExtensions.GetMemberName<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMember<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMethodValue<TObject>(TObject, string, object?, params object[])
    TestClassExtensions.GetMethod<TObject>(TObject, string)
    TestClassExtensions.GetPropertyValue<TObject>(TObject, string, object?)
    TestClassExtensions.GetProperty<TObject>(TObject, string)
    TestClassExtensions.SetFieldValue<TObject>(TObject, string, object?)
    TestClassExtensions.SetPropertyValue<TObject>(TObject, string, object?)
    MockerHttpMoqExtensions.SetupHttpMessage(object, Func<HttpResponseMessage>, Expression?, Expression?)
    MockerHttpMoqExtensions.SetupMessageAsync<TMock, TReturn>(object, Expression<Func<TMock, Task<TReturn>>>, Func<TReturn>)
    MockerHttpMoqExtensions.SetupMessageProtectedAsync<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessageProtected<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessage<TMock, TReturn>(object, Expression<Func<TMock, TReturn>>, Func<TReturn>)
    TestClassExtensions.GetFieldInfo<TType>(object, string)
    TestClassExtensions.GetFieldValue<T>(object?, FieldInfo)
    TestClassExtensions.GetFieldValue<T, TType>(object, string)
    In this article
    Back to top
    Generated 2026-04-29 03:53 UTC