Search Results for

    Show / Hide Table of Contents

    Class AkkaAssertEqualityComparer<T>

    Default implementation of IEqualityComparer<T> used by the Akka's xUnit.net equality assertions. Copy of xUnits code https://github.com/xunit/xunit/blob/3e6ab94ca231a6d8c86e90d6e724631a0faa33b7/src/xunit.assert/Asserts/Sdk/AssertEqualityComparer.cs Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.

    Inheritance
    object
    AkkaAssertEqualityComparer<T>
    Implements
    IEqualityComparer<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.TestKit.Xunit.Internals
    Assembly: Akka.TestKit.Xunit.dll
    Syntax
    public class AkkaAssertEqualityComparer<T> : IEqualityComparer<T>
    Type Parameters
    Name Description
    T

    The type that is being compared.

    Constructors

    | Edit this page View Source

    AkkaAssertEqualityComparer(bool, IEqualityComparer?)

    Initializes a new instance of the AkkaAssertEqualityComparer<T> class.

    Declaration
    public AkkaAssertEqualityComparer(bool skipTypeCheck = false, IEqualityComparer? innerComparer = null)
    Parameters
    Type Name Description
    bool skipTypeCheck

    Set to true to skip type equality checks.

    IEqualityComparer innerComparer

    The inner comparer to be used when the compared objects are enumerable.

    Methods

    | Edit this page View Source

    Equals(T?, T?)

    Declaration
    public bool Equals(T? x, T? y)
    Parameters
    Type Name Description
    T x
    T y
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetHashCode(T)

    Declaration
    public int GetHashCode(T obj)
    Parameters
    Type Name Description
    T obj
    Returns
    Type Description
    int

    Implements

    IEqualityComparer<T>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET