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

TestGetHashCode() private méthode

private TestGetHashCode ( ) : void
Résultat void
        public void TestGetHashCode()
        {
            UnitSpherical object1 = new UnitSpherical(1.0, 2.0);
            UnitSpherical object2 = new UnitSpherical(1.0, 2.0);
            UnitSpherical object3 = new UnitSpherical(1.0, 2.1);
            Assert.AreEqual(object1.GetHashCode(), object2.GetHashCode());
            Assert.AreNotEqual(object1.GetHashCode(), object3.GetHashCode());
        }