Beispiel #1
0
 public void Equals_Object_ReturnsExpected(Matrix3D matrix, object other, bool expected)
 {
     Assert.Equal(expected, matrix.Equals(other));
     if (other is Matrix3D otherMatrix)
     {
         Assert.Equal(expected, matrix.Equals(otherMatrix));
         Assert.Equal(expected, matrix == otherMatrix);
         Assert.Equal(!expected, matrix != otherMatrix);
         Assert.Equal(expected, matrix.GetHashCode().Equals(otherMatrix.GetHashCode()));
     }
 }