Esempio n. 1
0
        public void CalcFunctions_Multiply_Two_Numbers()
        {
            int a = 2, b = 3;

            int result = (int)CalcFunctions.Multiply(a, b);

            Assert.AreEqual(result, a * b);
        }
Esempio n. 2
0
        public void CalcFunctions_Multiply_Two_Double_Numbers()
        {
            double a = 2.393, b = 4.9393;

            double result = (double)CalcFunctions.Multiply(a, b);

            Assert.AreEqual(result, a * b);
        }
Esempio n. 3
0
        public void CalcFunctions_Multiply_Int_And_Double_Numbers()
        {
            double a = 2.3939;
            int    b = 9;

            double result = (double)CalcFunctions.Multiply(a, b);

            Assert.AreEqual(result, a * b);
        }