Beispiel #1
0
        public void pizza_is_create_with_ingredient()
        {
            CheckBox chkPoivron = new CheckBox();

            chkPoivron.Text    = "Poivron";
            chkPoivron.Checked = true;

            garniture = new List <CheckBox>();
            garniture.Add(new CheckBox());
            garniture.Add(chkPoivron);
            garniture.Add(new CheckBox());

            CommandG pizzaChosen = new CommandG(garniture);

            Assert.IsTrue(pizzaChosen.Pizza_configured.Ingredients.Count > 0);
        }
Beispiel #2
0
 public void setCommand(CommandG command)
 {
     this.command = command;
 }