Ejemplo n.º 1
0
 public void CanCalculateHashCode()
 {
     var complex = new Complex(1, 0);
     Assert.AreEqual(1072693248, complex.GetHashCode());
     complex = new Complex(0, 1);
     Assert.AreEqual(-1072693248, complex.GetHashCode());
     complex = new Complex(1, 1);
     Assert.AreEqual(-2097152, complex.GetHashCode());
 }