public void Equals_FalseForNotEqual() { var a = new LineSegment3(new Vector3(1, 2, 3), new Vector3(4, 5, 6)); var b = new LineSegment3(new Vector3(6, 5, 4), new Vector3(3, 2, 1)); Assert.IsFalse(a.Equals(b)); Assert.IsFalse(a.Equals((object)b)); Assert.IsFalse(a == b); }
public void Equals_TrueForEqual() { var a = new LineSegment3(new Vector3(1, 2, 3), new Vector3(4, 5, 6)); var b = a; Assert.IsTrue(a.Equals(b)); Assert.IsTrue(a.Equals((object)b)); Assert.IsTrue(a == b); }