Ejemplo n.º 1
0
        public void ShouldReturnCorrectSpecialInstructions(bool includeBun, bool includeKetchup, bool includeMustard,
                                                           bool includePickle, bool includeCheese, bool includeTomato,
                                                           bool includeLettuce, bool includeMayo)
        {
            Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
            entree.Bun     = includeBun;
            entree.Ketchup = includeKetchup;
            entree.Mustard = includeMustard;
            entree.Pickle  = includePickle;
            entree.Cheese  = includeCheese;
            entree.Tomato  = includeTomato;
            entree.Lettuce = includeLettuce;
            entree.Mayo    = includeMayo;

            if (!entree.Bun)
            {
                Assert.Contains <string>("Hold bun", entree.SpecialInstructions);
            }
            if (!entree.Ketchup)
            {
                Assert.Contains <string>("Hold ketchup", entree.SpecialInstructions);
            }
            if (!entree.Mustard)
            {
                Assert.Contains <string>("Hold mustard", entree.SpecialInstructions);
            }
            if (!entree.Pickle)
            {
                Assert.Contains <string>("Hold pickle", entree.SpecialInstructions);
            }
            if (!entree.Cheese)
            {
                Assert.Contains <string>("Hold cheese", entree.SpecialInstructions);
            }
            if (!entree.Tomato)
            {
                Assert.Contains <string>("Hold tomato", entree.SpecialInstructions);
            }
            if (!entree.Lettuce)
            {
                Assert.Contains <string>("Hold lettuce", entree.SpecialInstructions);
            }
            if (!entree.Mayo)
            {
                Assert.Contains <string>("Hold mayo", entree.SpecialInstructions);
            }
        }
Ejemplo n.º 2
0
 public void ShouldBeAbleToSetPickle()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     entree.Pickle = false;
     Assert.False(entree.Pickle);
 }
Ejemplo n.º 3
0
 public void ShouldBeAbleToSetMustard()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     entree.Mustard = false;
     Assert.False(entree.Mustard);
 }
Ejemplo n.º 4
0
 public void ShouldBeAbleToSetKetchup()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     entree.Ketchup = false;
     Assert.False(entree.Ketchup);
 }
Ejemplo n.º 5
0
 public void ShouldBeAbleToSetBun()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     entree.Bun = false;
     Assert.False(entree.Bun);
 }
Ejemplo n.º 6
0
 public void ShouldIncludeMayoByDefault()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Cheese);
 }
Ejemplo n.º 7
0
 public void ShouldIncludePickleByDefault()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Pickle);
 }
Ejemplo n.º 8
0
 public void ShouldIncludeMustardByDefault()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Mustard);
 }
Ejemplo n.º 9
0
 public void ShouldIncludeKetchupByDefault()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Ketchup);
 }
Ejemplo n.º 10
0
 public void ShouldReturnCorrectToString()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.Equal("Double Draugr", entree.ToString());
 }
Ejemplo n.º 11
0
 public void ShouldReturnCorrectCalories()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Calories == 843);
 }
Ejemplo n.º 12
0
 public void ShouldIncludeBunByDefault()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Bun);
 }
Ejemplo n.º 13
0
 public void ShouldReturnCorrectPrice()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     Assert.True(entree.Price == 7.32);
 }
Ejemplo n.º 14
0
 public void ShouldBeAbleToSetMayo()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     entree.Mayo = false;
     Assert.False(entree.Mayo);
 }
Ejemplo n.º 15
0
 public void ShouldBeAbleToSetLettuce()
 {
     Data.Entrees.DoubleDraugr entree = new Data.Entrees.DoubleDraugr();
     entree.Lettuce = false;
     Assert.False(entree.Lettuce);
 }