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); }
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); }
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); }
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); }