public void ShouldReturnFalseWhenObjectIsNotEqual() { var first = new MagickGeometry(10, 5); var second = new MagickGeometry(5, 10); Assert.False(first.Equals((object)second)); }
public void ShouldReturnTrueWhenInstanceIsEqual() { var first = new MagickGeometry(10, 5); var second = new MagickGeometry(10, 5); Assert.True(first.Equals(second)); }
public void ShouldReturnTrueWhenObjectIsEqual() { var first = new MagickGeometry(10, 5); var second = new MagickGeometry(10, 5); Assert.True(first.Equals((object)second)); }
public void ShouldReturnFalseWhenInstanceIsNotEqual() { var first = new MagickGeometry(10, 5); var second = new MagickGeometry(5, 10); Assert.IsFalse(first.Equals(second)); }
public void Test_IEquatable() { MagickGeometry first = new MagickGeometry(10, 5); Assert.IsFalse(first == null); Assert.IsFalse(first.Equals(null)); Assert.IsTrue(first.Equals(first)); Assert.IsTrue(first.Equals((object)first)); MagickGeometry second = new MagickGeometry(10, 5); Assert.IsTrue(first == second); Assert.IsTrue(first.Equals(second)); Assert.IsTrue(first.Equals((object)second)); second = new MagickGeometry(5, 5); Assert.IsTrue(first != second); Assert.IsFalse(first.Equals(second)); }
public void ShouldReturnTrueWhenObjectIsTheSame() { var geometry = new MagickGeometry(10, 5); Assert.True(geometry.Equals((object)geometry)); }
public void ShouldReturnTrueWhenInstanceIsTheSame() { var geometry = new MagickGeometry(10, 5); Assert.True(geometry.Equals(geometry)); }
public void ShouldReturnFalseWhenInstanceIsNull() { var geometry = new MagickGeometry(10, 5); Assert.False(geometry.Equals(null)); }