void complc(double r0, double i0, double r1, double i1) { z0 = new Complex(r0, i0); z1 = new Complex(r1, i1); }
public void Equals_operator_works() { Assert.False(z0.Equals(new System.DateTime()), "Equals didn't work"); z1 = z0; Assert.True(z0.Equals(z1), "Equals didn't work"); }
public void setup_stuff() { z0 = new Complex(realPart0, imaginaryPart0); z1 = new Complex(realPart1, imaginaryPart1); }
public void assignment_operator_works() { z1 = z0; Assert.AreEqual(z1.real, z0.real, "real part not matching literal"); Assert.AreEqual(z1.imaginary, z0.imaginary, "imaginary part not matching literal"); }