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

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

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

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

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

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

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

            Assert.AreEqual(true, rezult);
        }