public void TestEquals() { QuaternionF q1 = new QuaternionF(1.0f, 2.0f, 3.0f, 4.0f); QuaternionF q2 = new QuaternionF(1.0f, 2.0f, 3.0f, 4.0f); QuaternionF q3 = new QuaternionF(1.0f, 2.0f, 3.0f, 0.0f); Assert.IsTrue(q1.Equals(q2)); Assert.IsFalse(q1.Equals(q3)); }
public void TestEquals2() { QuaternionF q = QuaternionF.Identity; Assert.IsFalse(q.Equals(q.ToString())); }