Beispiel #1
0
        public void ShouldBeAbleToSetEggStyle(EggStyle style)
        {
            var ee = new EvisceratedEggs();

            ee.EggStyle = style;
            Assert.Equal(style, ee.EggStyle);
        }
Beispiel #2
0
        public void ShouldProvideCurrentSpecialInstructions(EggStyle style, string[] instructions)
        {
            var ee = new EvisceratedEggs();

            ee.EggStyle = style;
            Assert.Equal(instructions.Length, ee.SpecialInstructions.Count);
        }
Beispiel #3
0
        public void PriceIsCorrect(Size size, decimal price)
        {
            var ee = new EvisceratedEggs();

            ee.Size = size;
            Assert.Equal(price, ee.Price);
        }
Beispiel #4
0
        public void CaloriesAreCorrectForSize(Size size, uint calories)
        {
            var ee = new EvisceratedEggs();

            ee.Size = size;
            Assert.Equal(calories, ee.Calories);
        }
Beispiel #5
0
        public void NameIsCorrectForSize(Size size, string name)
        {
            var ee = new EvisceratedEggs();

            ee.Size = size;
            Assert.Equal(size, ee.Size);
            Assert.Equal(name, ee.Name);
        }
Beispiel #6
0
        /// <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);
        }
Beispiel #7
0
        public void DescriptionIsCorrect()
        {
            var ee = new EvisceratedEggs();

            Assert.Equal("Farm-fresh eggs, served as you like!", ee.Description);
        }
 public EviceratedEggsCustom()
 {
     ee = new EvisceratedEggs();
     InitializeComponent();
 }