Exemplo n.º 1
0
 public void TestGetHashCode()
 {
     Duration duration1 = new Duration(1, 0.0);
     Duration duration2 = new Duration(1, 1.0);
     Duration duration3 = new Duration(1, 0.0);
     Assert.AreNotEqual(duration1.GetHashCode(), duration2.GetHashCode());
     Assert.AreEqual(duration1.GetHashCode(), duration3.GetHashCode());
 }