ComparisonAdapter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ComparisonAdapter class centralizes all comparisons of values in NUnit, adapting to the use of any provided IComparer, IComparer<T> or Comparison<T>
public abstract class ComparisonAdapter
type ComparisonAdapter = class
- Inheritance
-
ComparisonAdapter
Constructors
ComparisonAdapter() |
Properties
Default |
Gets the default ComparisonAdapter, which wraps an NUnitComparer object. |
Methods
Compare(Object, Object) |
Compares two objects |
For(IComparer) |
Returns a ComparisonAdapter that wraps an IComparer |
For<T>(Comparison<T>) |
Returns a ComparisonAdapter that wraps a Comparison<T> |
For<T>(IComparer<T>) |
Returns a ComparisonAdapter that wraps an IComparer<T> |