C# Класс NUnit.Framework.Constraints.NUnitEqualityComparer

NUnitEqualityComparer encapsulates NUnit's handling of equality tests between objects.
Наследование: INUnitEqualityComparer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AreEqual ( object x, object y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool

Compares two objects for equality within a tolerance.

Приватные методы

Метод Описание
ArraysEqual ( Array x, Array y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool

Helper method to compare two arrays

CharsEqual ( char x, char y ) : bool
CollectionsEqual ( ICollection x, ICollection y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool
DictionariesEqual ( IDictionary x, IDictionary y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool
DictionaryEntriesEqual ( DictionaryEntry x, DictionaryEntry y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool
DirectoriesEqual ( DirectoryInfo x, DirectoryInfo y ) : bool

Method to compare two DirectoryInfo objects

EnumerablesEqual ( IEnumerable x, IEnumerable y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool
FirstImplementsIEquatableOfSecond ( Type first, Type second ) : MethodInfo
GetEquatableGenericArguments ( Type type ) : MethodInfo>>.IList
GetExternalComparer ( object x, object y ) : EqualityAdapter
InvokeFirstIEquatableEqualsSecond ( object first, object second, MethodInfo equals ) : bool
StreamsEqual ( Stream x, Stream y ) : bool
StringsEqual ( string x, string y ) : bool

Описание методов

AreEqual() публичный Метод

Compares two objects for equality within a tolerance.
public AreEqual ( object x, object y, NUnit.Framework.Constraints.Tolerance &tolerance ) : bool
x object
y object
tolerance NUnit.Framework.Constraints.Tolerance
Результат bool