Ejemplo n.º 1
0
        public void HoldMustardShouldRemoveMustard()
        {
            SteakosaursBurger sb = new SteakosaursBurger();

            sb.HoldMustard();
            Assert.DoesNotContain <string>("Mustard", sb.Ingredients);
        }
Ejemplo n.º 2
0
        public void HoldKetchupShouldRemoveKetchup()
        {
            SteakosaursBurger sb = new SteakosaursBurger();

            sb.HoldKetchup();
            Assert.DoesNotContain <string>("Ketchup", sb.Ingredients);
        }
Ejemplo n.º 3
0
        public void HoldPickleShouldRemovePickle()
        {
            SteakosaursBurger sb = new SteakosaursBurger();

            sb.HoldPickle();
            Assert.DoesNotContain <string>("Pickle", sb.Ingredients);
        }
Ejemplo n.º 4
0
        public void HoldBunShouldRemoveBun()
        {
            SteakosaursBurger sb = new SteakosaursBurger();

            sb.HoldBun();
            Assert.DoesNotContain <string>("Whole Wheat Bun", sb.Ingredients);
        }
Ejemplo n.º 5
0
        public void ShouldListDefaultIngredients()
        {
            SteakosaursBurger sb          = new SteakosaursBurger();
            List <string>     ingredients = sb.Ingredients;

            Assert.Contains <string>("Whole Wheat Bun", ingredients);
            Assert.Contains <string>("Steakburger Pattie", ingredients);
            Assert.Contains <string>("Pickle", ingredients);
            Assert.Contains <string>("Ketchup", ingredients);
            Assert.Contains <string>("Mustard", ingredients);
            Assert.Equal <int>(5, ingredients.Count);
        }
Ejemplo n.º 6
0
        public void ShouldHaveCorrectDefaultPrice()
        {
            SteakosaursBurger sb = new SteakosaursBurger();

            Assert.Equal(5.15, sb.Price, 2);
        }
Ejemplo n.º 7
0
        public void ShouldHaveCorrectDefaultCalories()
        {
            SteakosaursBurger sb = new SteakosaursBurger();

            Assert.Equal <uint>(621, sb.Calories);
        }