CesiumLanguageWriterTests.TestUnitSpherical.TestGetHashCode C# (CSharp) 메소드

TestGetHashCode() 개인적인 메소드

private TestGetHashCode ( ) : void
리턴 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());
        }