Class NUnitComparer
NUnitComparer encapsulates NUnit's default behavior in comparing two objects.
Implements
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public sealed class NUnitComparer : IComparer
Constructors
View SourceNUnitComparer()
Declaration
public NUnitComparer()
Properties
View SourceDefault
Returns the default NUnitComparer.
Declaration
public static NUnitComparer Default { get; }
Property Value
Type | Description |
---|---|
NUnitComparer |
Methods
View SourceCompare(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 |