示例#1
0
        public void Abs1()
        {
            TComplex testClass = new TComplex(3, 4);
            double   answer    = 5;

            Assert.AreEqual(answer, testClass.Abs(), 4);
        }
示例#2
0
        public void Abs2()
        {
            TComplex testClass = new TComplex(0, -3);
            double   answer    = 3;

            Assert.AreEqual(answer, testClass.Abs(), 4);
        }
示例#3
0
        public void TestAbs()
        {
            var test1  = new TComplex(3, 4);
            var resulr = test1.Abs();

            Assert.AreEqual(resulr, 5);
        }