Beispiel #1
0
        public void Test7_MulNum()
        {
            MathCalc calc = new MathCalc();

            double[,] rezult = calc.MulNum(a, 2);
            Assert.AreEqual(true, calc.CompareMatrix(f, rezult));
        }
Beispiel #2
0
        public void Test8_Mul()
        {
            MathCalc calc = new MathCalc();

            double[,] rezult = calc.Mul(a, b);
            Assert.AreEqual(true, calc.CompareMatrix(g, rezult));
        }
Beispiel #3
0
        public void Test6_Sub()
        {
            MathCalc calc = new MathCalc();

            double[,] rezult = calc.Sub(a, b);
            Assert.AreEqual(true, calc.CompareMatrix(e, rezult));
        }
Beispiel #4
0
        public void Test5_Add()
        {
            MathCalc calc = new MathCalc();

            double[,] rezult = calc.Add(a, b);
            Assert.AreEqual(true, calc.CompareMatrix(rezult, d));
        }
Beispiel #5
0
        public void Test4_Trans()
        {
            MathCalc calc = new MathCalc();

            double [,] rezult = calc.Trans(a);
            Assert.AreEqual(true, calc.CompareMatrix(t, rezult));
        }
Beispiel #6
0
        public void Test3_CompareMatrix()
        {
            MathCalc calc   = new MathCalc();
            bool     rezult = calc.CompareMatrix(a, b);

            Assert.AreEqual(false, rezult);
        }
Beispiel #7
0
        public void Test2_CompareMatrix()
        {
            MathCalc calc   = new MathCalc();
            bool     rezult = calc.CompareMatrix(a, a);

            Assert.AreEqual(true, rezult);
        }