public void GetDotProduct() { ComplexDoubleVector a = new ComplexDoubleVector(new double[4] { 0, 1, 2, 3 }); ComplexDoubleVector b = new ComplexDoubleVector(new double[4] { 4, 5, 6, 7 }); Assert.AreEqual(a.GetDotProduct(), (Complex)14); Assert.AreEqual(b.GetDotProduct(), (Complex)126); Assert.AreEqual(a.GetDotProduct(b), (Complex)38); Assert.AreEqual(a.GetDotProduct(b), b.GetDotProduct(a)); }