public void ShouldBeAbleToSetEggStyle(EggStyle style) { var ee = new EvisceratedEggs(); ee.EggStyle = style; Assert.Equal(style, ee.EggStyle); }
public void ShouldProvideCurrentSpecialInstructions(EggStyle style, string[] instructions) { var ee = new EvisceratedEggs(); ee.EggStyle = style; Assert.Equal(instructions.Length, ee.SpecialInstructions.Count); }
public void PriceIsCorrect(Size size, decimal price) { var ee = new EvisceratedEggs(); ee.Size = size; Assert.Equal(price, ee.Price); }
public void CaloriesAreCorrectForSize(Size size, uint calories) { var ee = new EvisceratedEggs(); ee.Size = size; Assert.Equal(calories, ee.Calories); }
public void NameIsCorrectForSize(Size size, string name) { var ee = new EvisceratedEggs(); ee.Size = size; Assert.Equal(size, ee.Size); Assert.Equal(name, ee.Name); }
/// <summary> /// Handler for event of Evicerated Eggs 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 EvisceratedEggs_Click(object sender, EventArgs e) { EviceratedEggsCustom eecWindow = new EviceratedEggsCustom(); EvisceratedEggs ee = new EvisceratedEggs(); eecWindow.ShowDialog(); ee = eecWindow.ee; OrderList.Add(ee); }
public void DescriptionIsCorrect() { var ee = new EvisceratedEggs(); Assert.Equal("Farm-fresh eggs, served as you like!", ee.Description); }
public EviceratedEggsCustom() { ee = new EvisceratedEggs(); InitializeComponent(); }