public void Abs1() { TComplex testClass = new TComplex(3, 4); double answer = 5; Assert.AreEqual(answer, testClass.Abs(), 4); }
public void Abs2() { TComplex testClass = new TComplex(0, -3); double answer = 3; Assert.AreEqual(answer, testClass.Abs(), 4); }
public void TestAbs() { var test1 = new TComplex(3, 4); var resulr = test1.Abs(); Assert.AreEqual(resulr, 5); }