コード例 #1
0
 public void GetHashCode_ReturnsSameHashCodeForIdenticalClippings(Clipping dummyClipping1,
                                                                  Clipping dummyClipping2,
                                                                  bool identical)
 {
     // Act and assert
     Assert.Equal(identical, dummyClipping1.GetHashCode() == dummyClipping2.GetHashCode());
 }
コード例 #2
0
        public void GetHashCode_AllAndIndividual_Equals()
        {
            // Arrange
            const int Value = 12345;
            Clipping  a     = new Clipping(Value);
            Clipping  b     = new Clipping(Value, Value, Value, Value);

            // Act
            int hashA = a.GetHashCode();
            int hashB = b.GetHashCode();

            // Assert
            Assert.Equal(hashA, hashB);
        }