public void Test1() { double a = 2; double b = 2; double oczekiwane = 4; var kal = new Kalkulator(); double wynik = kal.Dodaj(a, b); Assert.Equal(oczekiwane, wynik); }
public void TestMethod1() { // Arange int expected = 10; //Act Kalkulator k = new Kalkulator(); int result = k.Dodaj(5, 5); //Assert Assert.Equal(expected, result); Assert.Equal(3, 3); }