Search Results for

    Show / Hide Table of Contents

    Class NUnitComparer

    NUnitComparer encapsulates NUnit's default behavior in comparing two objects.

    Inheritance
    object
    NUnitComparer
    Implements
    IComparer
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Constraints
    Assembly: nunit.framework.dll
    Syntax
    public sealed class NUnitComparer : IComparer

    Constructors

    View Source

    NUnitComparer()

    Declaration
    public NUnitComparer()

    Properties

    View Source

    Default

    Returns the default NUnitComparer.

    Declaration
    public static NUnitComparer Default { get; }
    Property Value
    Type Description
    NUnitComparer

    Methods

    View Source

    Compare(object?, object?)

    Compares two objects

    Declaration
    public int Compare(object? x, object? y)
    Parameters
    Type Name Description
    object x
    object y
    Returns
    Type Description
    int

    Implements

    IComparer
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0