Пример #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));
 }