public void Method_multiply_returns_fraction_of_given_values() { // arrange - przygotowanie //TestMathemacs math = new TestMathemacs(); var math = new Matematyka(); // act - wwykonanie testu double result = math.Multiply(101, 4.5); // assert - sprawdzenie wyników Assert.Equal(454.5, result); }
public void TheoryExamplemultipli(double x, double y, double expected) { // arrange - przygotowanie //TestMathemacs math = new TestMathemacs(); var math = new Matematyka(); // act - wwykonanie testu double result = math.Multiply(x, y); // assert - sprawdzenie wyników Assert.Equal(expected, result); }