CesiumLanguageWriterTests.TestUnitSpherical.TestEquality C# (CSharp) Méthode

TestEquality() private méthode

private TestEquality ( ) : void
Résultat void
        public void TestEquality()
        {
            UnitSpherical first = new UnitSpherical(1.0, 2.0);
            UnitSpherical second = new UnitSpherical(1.0, 2.0);
            Assert.AreEqual(first, second);
            Assert.AreEqual(second, first);
            Assert.IsTrue(first == second);
            Assert.IsTrue(second == first);
            Assert.IsFalse(first != second);
            Assert.IsFalse(second != first);
            Assert.IsTrue(first.Equals(second));
            Assert.IsTrue(second.Equals(first));

            second = new UnitSpherical(1.0, 2.1);
            Assert.AreNotEqual(first, second);
            Assert.AreNotEqual(second, first);
            Assert.IsFalse(first == second);
            Assert.IsFalse(second == first);
            Assert.IsTrue(first != second);
            Assert.IsTrue(second != first);
            Assert.IsFalse(first.Equals(second));
            Assert.IsFalse(second.Equals(first));
        }