public void Test_AddMethod() { BasicMaths bm = new BasicMaths(); double res = bm.Add(10, 10); Assert.AreEqual(res, 20); }
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); }