コード例 #1
0
        public void CheckImpartireMatrice()
        {
            Init();
            //act
            var expected = matrice1 / matrice2;
            var actual   = CalculatorGenericMath.Divide(matrice1, matrice2);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void CheckScadereMatrice()
        {
            Init();
            //act
            var actual   = CalculatorGenericMath.Subtract(matrice1, matrice2);
            var expected = matrice1 - matrice2;

            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        public void CheckInmultireMatrice()
        {
            Init();
            //act
            var actual   = CalculatorGenericMath.Multiply(matrice1, matrice2);
            var expected = matrice2 * matrice1;

            Assert.AreEqual(expected, actual);
        }
コード例 #4
0
        public void CheckAdunareMatrice()
        {
            Init();
            //act
            var actual = CalculatorGenericMath.Add <Matrix <double> >(matrice1, matrice2);

            var expected = matrice1 + matrice2;

            Assert.AreEqual(expected, actual);
        }