public void TestGetHashCode() { LeapSecond ls1 = new LeapSecond(2451545.0, 100.0); LeapSecond ls2 = new LeapSecond(2451545.0, 100.0); LeapSecond ls3 = new LeapSecond(2451545.0, 101.0); Assert.AreEqual(ls1.GetHashCode(), ls2.GetHashCode()); Assert.AreNotEqual(ls1.GetHashCode(), ls3.GetHashCode()); }
public void TestGetHashCode() { LeapSecond leapSecond1 = new LeapSecond(2451545.0, 100.0); LeapSecond leapSecond2 = new LeapSecond(2451545.0, 100.0); LeapSecond leapSecond3 = new LeapSecond(2451545.0, 101.0); Assert.AreEqual(leapSecond1.GetHashCode(), leapSecond2.GetHashCode()); Assert.AreNotEqual(leapSecond1.GetHashCode(), leapSecond3.GetHashCode()); }