public void TestHashCode() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2); a[0, 0] = new Complex(2, 2); a[0, 1] = new Complex(2, 2); a[1, 0] = new Complex(2, 2); a[1, 1] = new Complex(2, 2); int hash = a.GetHashCode(); Assert.AreEqual(hash, 5); }