<PackageReference Include="NUnit" Version="4.3.2" />

TupleComparer

static class TupleComparer
Comparator for two Tuples.
using NUnit.Framework.Internal; using System; using System.Runtime.CompilerServices; namespace NUnit.Framework.Constraints.Comparers { [NullableContext(1)] [Nullable(0)] internal static class TupleComparer { private static bool IsCorrectType(Type type) { return TypeHelper.IsTuple(type); } [return: Nullable(2)] private static object GetValue(Type type, string propertyName, object obj) { return type.GetProperty(propertyName)?.GetValue(obj, null); } public static EqualMethodResult Equal(object x, object y, ref Tolerance tolerance, ComparisonState state, NUnitEqualityComparer equalityComparer) { return TupleComparerBase.Equal(x, y, ref tolerance, state, equalityComparer, IsCorrectType, GetValue); } } }