public void SubtractTest()
 {
     IComplex compl = new complex();
       complex a = new complex(20, 30);
       complex b = new complex(30, 40);
       complex actual = compl.Subtract(a, b);
       complex expected = a - b;
       Assert.AreEqual(actual.im, expected.im);
       Assert.AreEqual(actual.re, expected.re);
 }
Esempio n. 2
0
        public void SubtractTest()
        {
            IComplex compl    = new complex();
            complex  a        = new complex(20, 30);
            complex  b        = new complex(30, 40);
            complex  actual   = compl.Subtract(a, b);
            complex  expected = a - b;

            Assert.AreEqual(actual.im, expected.im);
            Assert.AreEqual(actual.re, expected.re);
        }