public void Point2F_EqualsObject() { var size1 = new Point2F(123.45f, 456.78f); var size2 = new Point2F(123.45f, 456.78f); TheResultingValue(size1.Equals((Object)size2)).ShouldBe(true); TheResultingValue(size1.Equals("This is a test")).ShouldBe(false); }
public void Point2F_EqualsObject() { var point1 = new Point2F(123.45f, 456.78f); var point2 = new Point2F(123.45f, 456.78f); TheResultingValue(point1.Equals((Object)point2)).ShouldBe(true); TheResultingValue(point1.Equals("This is a test")).ShouldBe(false); }
public void Point2F_EqualsPoint2F() { var size1 = new Point2F(123.45f, 456.78f); var size2 = new Point2F(123.45f, 456.78f); var size3 = new Point2F(123.45f, 555.55f); var size4 = new Point2F(222.22f, 456.78f); TheResultingValue(size1.Equals(size2)).ShouldBe(true); TheResultingValue(size1.Equals(size3)).ShouldBe(false); TheResultingValue(size1.Equals(size4)).ShouldBe(false); }
public void Point2F_EqualsPoint2F() { var point1 = new Point2F(123.45f, 456.78f); var point2 = new Point2F(123.45f, 456.78f); var point3 = new Point2F(123.45f, 555.55f); var point4 = new Point2F(222.22f, 456.78f); TheResultingValue(point1.Equals(point2)).ShouldBe(true); TheResultingValue(point1.Equals(point3)).ShouldBe(false); TheResultingValue(point1.Equals(point4)).ShouldBe(false); }