Esempio n. 1
0
        public void ShouldReturnCorrectSpecialInstructions(bool includeBroccoli, bool includeMushrooms,
                                                           bool includeTomato, bool includeCheddar)
        {
            Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
            entree.Broccoli  = includeBroccoli;
            entree.Mushrooms = includeMushrooms;
            entree.Tomato    = includeTomato;
            entree.Cheddar   = includeCheddar;

            if (!entree.Broccoli)
            {
                Assert.Contains <string>("Hold broccoli", entree.SpecialInstructions);
            }
            if (!entree.Mushrooms)
            {
                Assert.Contains <string>("Hold mushrooms", entree.SpecialInstructions);
            }
            if (!entree.Tomato)
            {
                Assert.Contains <string>("Hold tomato", entree.SpecialInstructions);
            }
            if (!entree.Cheddar)
            {
                Assert.Contains <string>("Hold cheddar", entree.SpecialInstructions);
            }
        }
Esempio n. 2
0
 public void ShouldReturnCorrectPrice()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.True(entree.Price == 4.57);
 }
Esempio n. 3
0
 public void ShouldReturnCorrectCalories()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.True(entree.Calories == 404);
 }
Esempio n. 4
0
 public void ShouldBeAbleToSetTomato()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     entree.Tomato = false;
     Assert.False(entree.Tomato);
 }
Esempio n. 5
0
 public void ShouldBeAbleToSetCheddar()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     entree.Cheddar = false;
     Assert.False(entree.Cheddar);
 }
Esempio n. 6
0
 public void ShouldBeAbleToSetBroccoli()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     entree.Broccoli = false;
     Assert.False(entree.Broccoli);
 }
Esempio n. 7
0
 public void ShouldBeAbleToSetMushrooms()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     entree.Mushrooms = false;
     Assert.False(entree.Mushrooms);
 }
Esempio n. 8
0
 public void ShouldInlcudeCheddarByDefault()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.True(entree.Cheddar);
 }
Esempio n. 9
0
 public void ShouldInlcudeTomatoByDefault()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.True(entree.Tomato);
 }
Esempio n. 10
0
 public void ShouldInlcudeMushroomsByDefault()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.True(entree.Mushrooms);
 }
Esempio n. 11
0
 public void ShouldInlcudeBroccoliByDefault()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.True(entree.Broccoli);
 }
Esempio n. 12
0
 public void ShouldReturnCorrectToString()
 {
     Data.Entrees.GardenOrcOmelette entree = new Data.Entrees.GardenOrcOmelette();
     Assert.Equal("Garden Orc Omelette", entree.ToString());
 }