public void Equals_FalseForNotEqual() { var a = new Ray3(new Vector3(1, 2, 3), Vector3.UnitY); var b = new Ray3(new Vector3(1, 2, 3), Vector3.UnitX); Assert.IsFalse(a.Equals(b)); Assert.IsFalse(a.Equals((object)b)); Assert.IsFalse(a == b); }
public void Equals_TrueForEqual() { var a = new Ray3(new Vector3(1, 2, 3), Vector3.UnitY); var b = a; Assert.IsTrue(a.Equals(b)); Assert.IsTrue(a.Equals((object)b)); Assert.IsTrue(a == b); }