public void Equals() { ComplexFloatVector a = new ComplexFloatVector(2, 4); ComplexFloatVector b = new ComplexFloatVector(2, 4); ComplexFloatVector c = new ComplexFloatVector(2); c[0] = (ComplexFloat)4; c[1] = (ComplexFloat)4; ComplexFloatVector d = new ComplexFloatVector(2, 5); ComplexFloatVector e = null; Assert.IsTrue(a.Equals(b)); Assert.IsTrue(b.Equals(a)); Assert.IsTrue(a.Equals(c)); Assert.IsTrue(b.Equals(c)); Assert.IsTrue(c.Equals(b)); Assert.IsTrue(c.Equals(a)); Assert.IsFalse(a.Equals(d)); Assert.IsFalse(d.Equals(b)); Assert.IsFalse(a.Equals(e)); }