public void TestPriceSideDania() { //Arrange Pizza.Form1 form1 = new Pizza.Form1(); Pizza.LoadListOfSideDishes loadListOfSideDishes = new Pizza.LoadListOfSideDishes(); List <string> sideDishes = loadListOfSideDishes.LoadSideDaniaGlowne(); //ATC //foreach(var st in sideDishes) //{ // price.Add(form1.FindsPrice(st)); //} int price = form1.FindsPrice(sideDishes[0]); Assert.AreEqual(5, price); price = form1.FindsPrice(sideDishes[1]); Assert.AreEqual(6, price); //Assert //check.Add(5); //check.Add(6); }
public void TestPriceSidePizza() { //Arrange Pizza.Form1 form1 = new Pizza.Form1(); Pizza.LoadListOfSideDishes loadListOfSideDishes = new Pizza.LoadListOfSideDishes(); List <string> sideDishes = loadListOfSideDishes.LoadSidePizza(); //ATC foreach (var st in sideDishes) { int priceAll = form1.FindsPrice(st); Assert.AreEqual(2, priceAll); } //Assert }