public void ShouldReturnCorrectSpecialInstructions(bool includeSirloin, bool includeOnion, bool includeRoll) { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); entree.Sirloin = includeSirloin; entree.Onion = includeOnion; entree.Roll = includeRoll; if (!entree.Sirloin) { Assert.Contains <string>("Hold sirloin", entree.SpecialInstructions); } if (!entree.Onion) { Assert.Contains <string>("Hold onions", entree.SpecialInstructions); } if (!entree.Roll) { Assert.Contains <string>("Hold roll", entree.SpecialInstructions); } }
public void ShouldReturnCorrectToString() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); Assert.Equal("Philly Poacher", entree.ToString()); }
public void ShouldReturnCorrectPrice() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); Assert.True(entree.Price == 7.23); }
public void ShouldReturnCorrectCalories() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); Assert.True(entree.Calories == 784); }
public void ShouldBeAbleToSetRoll() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); entree.Roll = false; Assert.False(entree.Roll); }
public void ShouldBeAbleToSetOnions() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); entree.Onion = false; Assert.False(entree.Onion); }
public void ShouldBeAbleToSetSirloin() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); entree.Sirloin = false; Assert.False(entree.Sirloin); }
public void ShouldInlcudeRollByDefault() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); Assert.True(entree.Roll); }
public void ShouldInlcudeSirloinByDefault() { Data.Entrees.PhillyPoacher entree = new Data.Entrees.PhillyPoacher(); Assert.True(entree.Sirloin); }