Exemple #1
0
        public void TestEquals()
        {
            Ellipsoid e1 = Ellipsoid.FromAAndInverseF(100000, 100);
            Ellipsoid e2 = Ellipsoid.FromAAndInverseF(100000, 100);
            Ellipsoid e3 = Ellipsoid.FromAAndInverseF(100000, 101);
            Ellipsoid e4 = Ellipsoid.FromAAndInverseF(100000, 100 + 1e-13);
            object    s  = "123";

            Assert.IsTrue(e1.Equals(e2));
            Assert.IsFalse(e1.Equals(e3));
            Assert.IsTrue(e1.Equals(e4));
            Assert.IsFalse(e1.Equals(null));
            Assert.IsFalse(e1.Equals(s));
        }