public void ObjectWithListDoesNotMatch() { var a = new ObjectWithList { Number = 2, String = "string", Decimal = 20.000000000000000000001, List = new List<int> {1, 2, 3, 4, 5, 6, 7, 8, 9} }; var b = new ObjectWithList { Number = 2, String = "string", Decimal = 20.000000000000000000001, List = new List<int> {1, 2, 3, 4, 5, 6, 7, 8} }; var result = _calculator.Diff(a, b) as ObjectDiff; result.WithoutMatching(); Assert.False(result.ValuesMatch); }
public void ObjectWithListMatches() { var a = new ObjectWithList { Number = 2, String = "string", Decimal = 20.000000000000000000001, List = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 } }; var b = new ObjectWithList { Number = 2, String = "string", Decimal = 20.000000000000000000001, List = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 } }; var result = _calculator.Diff(a, b); Assert.True(result.ValuesMatch); }