public void TheoryExample(double x, double y, double expected) { // arrange var math = new Mathematics(); // act var result = math.Add(x, y); // assert Assert.Equal(expected, result); }
public void Method_add_returns_sum_of_positive_and_negative_numbers() { // arrange var math = new Mathematics(); // act var result = math.Add(10, -20); // assert Assert.Equal(-10, result); }
public void Method_add_returns_sum_of_given_values() { // arrange var math = new Mathematics(); // act var result = math.Add(10, 20); // assert Assert.Equal(30, result); }