public void WrongIngredientsOrder3() { var sandwich = new Sandwich(); sandwich.Add(brown); sandwich.Add(salad); Assert.AreEqual(sandwich.Vegetables, null); }
public void CanNotAddSecondBread() { var sandwich = new Sandwich(); sandwich.Add(brown); sandwich.Add(white); Assert.AreNotEqual(sandwich.Bread, null); Assert.AreNotEqual(sandwich.Bread, white); }
public void CanNotAddSecondMeat() { var sandwich = new Sandwich(); sandwich.Add(rye); sandwich.Add(pork); sandwich.Add(hen); Assert.AreNotEqual(sandwich.Meat, null); Assert.AreNotEqual(sandwich.Meat, hen); }
public void CanNotAddSecondVegetables() { var sandwich = new Sandwich(); sandwich.Add(white); sandwich.Add(hen); sandwich.Add(salad); sandwich.Add(cucumber); Assert.AreNotEqual(sandwich.Vegetables, null); Assert.AreNotEqual(sandwich.Vegetables, cucumber); }
static void Main() { var s = new Sandwich(); var b = new Bread(); var m = new Meat(); var v = new Vegetables(); s.Add(b); s.Add(m); s.Add(v); //Application.Run(new Game()); }
public void WrongIngredientsOrder2() { var sandwich = new Sandwich(); sandwich.Add(pork); Assert.AreEqual(sandwich.Meat, null); }
public void FirstAddBread() { sandwich.Add(rye); Assert.AreEqual(sandwich.Bread, rye); }