public void ShouldCheckCollectionsHashCodeWithoutRespectToOrder(BinaryComparisonOperationsTestCase testCase) { Assert.True( testCase.First.IsSame(testCase.Second) && testCase.First.GetHashCodeWithoutRespectToOrder(x => x) == testCase.Second.GetHashCodeWithoutRespectToOrder(x => x) || testCase.First.IsSame(testCase.Second) == false ); }
public void ShouldCheckCollectionsIsSame(BinaryComparisonOperationsTestCase testCase) { Assert.Equal(testCase.Expected, testCase.First.IsSame(testCase.Second, EqualityComparer <int> .Default)); }