예제 #1
0
 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
         );
 }
예제 #2
0
 public void ShouldCheckCollectionsIsSame(BinaryComparisonOperationsTestCase testCase)
 {
     Assert.Equal(testCase.Expected, testCase.First.IsSame(testCase.Second, EqualityComparer <int> .Default));
 }