public void Test_SumaMetodo() { BasicMaths b = new BasicMaths(); double resultado = b.suma(10, 10); Assert.AreEqual(20, resultado); }
public void Test_MultiplicacionMetodo() { BasicMaths b = new BasicMaths(); double resultado = b.multiplicacion(10, 10); Assert.AreEqual(100, resultado); }
public void Test_DivisionMetodo() { BasicMaths b = new BasicMaths(); double resultado = b.division(10, 10); Assert.AreEqual(1, resultado); }
public void Test_RestaMetodo() { BasicMaths b = new BasicMaths(); double resultado = b.resta(10, 10); Assert.AreEqual(0, resultado); }
public void Test_DivideMethod() { BasicMaths bm = new BasicMaths(); double res = bm.Divide(12, 4); Assert.AreEqual(res, 3); }
public void Test_DivideMethod() { BasicMaths bm = new BasicMaths(); double res = bm.divide(10, 2); Assert.AreEqual(res, 5); }
public void Test_SubtractMethod() { BasicMaths basicMaths = new BasicMaths(); double res = basicMaths.Substract(10, 10); Assert.AreEqual(res, 0); }
public void Test_SubtractMethod() { BasicMaths bm = new BasicMaths(); double res = bm.Substract(100, 50); Assert.AreEqual(res, 50); }
public void Test_MultiplyMethod() { BasicMaths bm = new BasicMaths(); double res = bm.Multiply(10, 10); Assert.AreEqual(res, 100); }
public void TestDivMethod_Correct() { BasicMaths bm = new BasicMaths(); double result = bm.DivNum(10, 2); Assert.AreEqual(result, 5); }
public void Test_AddMethod() { BasicMaths bm = new BasicMaths(); double res = bm.Add(10, 10); Assert.AreEqual(res, 20); }
public void TestSubMethod_Correct() { BasicMaths bm = new BasicMaths(); double result = bm.SubNums(15, 10); Assert.AreEqual(result, 5); }
public void TestMultMethod_Correct() { BasicMaths bm = new BasicMaths(); double result = bm.MultNum(10, 5); Assert.AreEqual(result, 50); }
public void TestAddMethod_Correct() { BasicMaths bm = new BasicMaths(); //instance of the basic maths class - contains units(methods) to test double result = bm.AddNums(15, 10); Assert.AreEqual(result, 25); // checks if the test data matches what the answer should be }
public void Test_DivideMethod() { BasicMaths basicMaths = new BasicMaths(); double res = basicMaths.divide(20, 5); Assert.AreEqual(res, 4); }
public void Task_Divide_TwoNumber() { BasicMaths bm = new BasicMaths(); // Arrange var num1 = 2.9; var num2 = 3.1; var expectedValue = 0.94; //Rounded value // Act var div = bm.Divide(num1, num2); //Assert Assert.Equal(expectedValue, div, 2); }
public void Task_Add_TwoNumber() { BasicMaths bm = new BasicMaths(); // Arrange var num1 = 2.9; var num2 = 3.1; var expectedValue = 6; // Act var sum = bm.Add(num1, num2); //Assert Assert.Equal(expectedValue, sum, 1); }
public void Task_Multiply_TwoNumber() { BasicMaths bm = new BasicMaths(); // Arrange var num1 = 2.9; var num2 = 3.1; var expectedValue = 8.99; // Act var mult = bm.Multiply(num1, num2); //Assert Assert.Equal(expectedValue, mult, 2); }
public void Task_Subtract_TwoNumber() { BasicMaths bm = new BasicMaths(); // Arrange var num1 = 2.9; var num2 = 3.1; var expectedValue = -0.2; // Act var sub = bm.Substract(num1, num2); //Assert Assert.Equal(expectedValue, sub, 1); }