Summary
ComparisonAdapter class centralizes all comparisons of
values in NUnit, adapting to the use of any provided
IComparer, IComparer<T> or Comparison<T>
- Namespace
- TCLite
.Constraints - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["ComparisonAdapter"]
class Type type-node
Syntax
public abstract class ComparisonAdapter
Properties
Name | Value | Summary |
---|---|---|
Default | ComparisonAdapter |
Gets the default ComparisonAdapter, which wraps an
NUnitComparer object.
static
|
Methods
Name | Value | Summary |
---|---|---|
Compare |
int |
Compares two objects
|
For |
ComparisonAdapter |
Returns a ComparisonAdapter that wraps an IComparer
static
|
For |
ComparisonAdapter |
Returns a ComparisonAdapter that wraps a Comparison<T>
static
|
For |
ComparisonAdapter |
Returns a ComparisonAdapter that wraps an IComparer<T>
static
|