Пример #1
0
        public void testMultiplication()
        {
            decimal op1 = 2.4m;
            decimal op2 = 5.8m;

            Assert.AreEqual(op1 * op2, Mul.Multiplication(op1, op2));
        }
Пример #2
0
        public static void Main(String[] args)
        {
            Console.WriteLine("Enter num1");
            int num1 = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Enter num2");
            int num2 = Int32.Parse(Console.ReadLine());
            Add a    = new Add();
            Mul m    = new Mul();

            Console.WriteLine(a.Addition(num1, num2));
            Console.WriteLine(m.Multiplication(num1, num2));
            Console.ReadLine();
        }