public void Losuj_Zakres_OK(int a, int b) { // Arrange-Act-Assert int x = a; int y = b; int los = Gra.Losuj(x, y); Assert.IsTrue(los >= Math.Min(x, y) && los <= Math.Max(x, y)); }
public void Losuj_OK(int x, int y) { //Arrange-Act-Assert = AAA //Arrange //Act int wylos = Gra.Losuj(x, y); //Assert Assert.IsTrue(wylos >= Math.Min(x, y) && wylos <= Math.Max(x, y)); }
public void Losuj_OK() { //arrange-act-assert //arrange int min = 1; int max = 10; //act int wylos = Gra.Losuj(min, max); //Assert Assert.IsTrue(wylos >= Math.Min(x,y) && wylos <= Math.Max(x,y); }