public void PriceIsCorrect(Size size, decimal price) { var tb = new TakenBacon(); tb.Size = size; Assert.Equal(price, tb.Price); }
public void CaloriesAreCorrectForSize(Size size, uint calories) { var tb = new TakenBacon(); tb.Size = size; Assert.Equal(calories, tb.Calories); }
public void NameIsCorrectForSize(Size size, string name) { var tb = new TakenBacon(); tb.Size = size; Assert.Equal(size, tb.Size); Assert.Equal(name, tb.Name); }
/// <summary> /// Handler for event of Taken Bacon Button /// Creates new instance of customization window /// Passes updated item object back on window close /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void TakenBacon_Click(object sender, EventArgs e) { TakenBaconCustom tbcWindow = new TakenBaconCustom(); TakenBacon tb = new TakenBacon(); tbcWindow.ShowDialog(); tb = tbcWindow.tb; OrderList.Add(tb); }
public void SpecialInstructionsShouldBeEmpty() { var tb = new TakenBacon(); Assert.Equal(0, tb.SpecialInstructions.Count); }
public void DescriptionIsCorrect() { var tb = new TakenBacon(); Assert.Equal("Crispy thick-sliced strips of hickory-smoked bacon.", tb.Description); }
public TakenBaconCustom() { tb = new TakenBacon(); InitializeComponent(); }