public void Adding_two_positive_integers() { // arange var x = 5; var y = 10; var calc = new ExampleCalculator(); // act var result = calc.Add(x, y); // assert Assert.Equal(15, result); }
public void TestExampleCalculatorAddition() { ICalculator calc = new ExampleCalculator(); Assert.AreEqual(3, calc.Add(1, 2)); }