public void AddTest_Add5AndNegative5() { // arrange double a = 5; double b = -5; double expected = 0; var calc = new CalculatorLib.Calculator(); // act double actual = calc.Add(a, b); // assert Assert.Equal(expected, actual); }
public void AddTest_Add0And1() { // arrange double a = 0; double b = 1; double expected = 1; var calc = new CalculatorLib.Calculator(); // act double actual = calc.Add(a, b); // assert Assert.Equal(expected, actual); }