示例#1
0
 public void Equals_Object_ReturnsExpected(GridLength gridLength, object other, bool expected)
 {
     Assert.Equal(expected, gridLength.Equals(other));
     if (other is GridLength otherGridLength)
     {
         Assert.Equal(expected, gridLength.Equals(otherGridLength));
         Assert.Equal(expected, gridLength == otherGridLength);
         Assert.Equal(!expected, gridLength != otherGridLength);
         Assert.Equal(expected, gridLength.GetHashCode().Equals(otherGridLength.GetHashCode()));
     }
 }