public void EqualsLine2doubleTrue() { var p1 = new Point2double(1, 2); var p2 = new Point2double(3, 4); var l1 = new Line2double(p1, p2); var l2 = new Line2double(p1, p2); Assert.True(l1.Equals(l2)); }
public void EqualsLine2doubleFalse() { var p1 = new Point2double(1, 2); var p2 = new Point2double(3, 4); var p3 = new Point2double(5, 5); var l1 = new Line2double(p1, p2); var l2 = new Line2double(p1, p3); Assert.False(l1.Equals(l2)); }