Exemple #1
0
        public void Test_Subtraction()
        {
            Logic_Interfaces.IBinaryOperation addition = new Logic.Subtraction();
            double result = addition.Perform_binary_calculation(3.0, 2.0);

            Assert.AreEqual(1.0, result);
        }
Exemple #2
0
        public void Test_SubtractionPostiveNegativeWholeNumbers()
        {
            double lhs = 5.0;
            double rhs = -2.0;

            Logic_Interfaces.IBinaryOperation subtraction = new Logic.Subtraction();
            double result = subtraction.Perform_binary_calculation(lhs, rhs);

            Assert.AreEqual(7, result);
        }
Exemple #3
0
        public void Test_SubtractionDecimalNumbers()
        {
            double lhs = 3.1;
            double rhs = 2.9;

            Logic_Interfaces.IBinaryOperation subtraction = new Logic.Subtraction();
            double result = subtraction.Perform_binary_calculation(lhs, rhs);

            Assert.AreEqual(0.2, result, 0.000001);
        }
        public void Test_Subtraction()
        {
            double lhs = 100.00;
            double rhs = 50.0;

            Logic_Interfaces.IBinaryOperation subtraction = new Logic.Subtraction();
            double result = subtraction.Perform_binary_calculation(lhs, rhs);

            Assert.AreEqual(50.0, result);
        }
Exemple #5
0
        public void Test_Subtraction()
        {
            double lhs = 3.1;
            double rhs = 2.9;

            Logic_Interfaces.IBinaryOperation addition = new Logic.Subtraction();
            double result = addition.Perform_binary_calculation(lhs, rhs);

            Assert.AreEqual(0.2, result);
        }