public void Method_add_returns_fraction_of_given_values() { // arrange - przygotowanie //TestMathemacs math = new TestMathemacs(); var math = new Matematyka(); // act - wwykonanie testu double result = math.Add(33.33, 20); // assert - sprawdzenie wyników Assert.Equal(53.33, result); }
public void TheoryExample(double x, double y, double expected) { // arrange - przygotowanie //TestMathemacs math = new TestMathemacs(); var math = new Matematyka(); // act - wwykonanie testu double result = math.Add(x, y); // assert - sprawdzenie wyników Assert.Equal(expected, result); }