Exemplo n.º 1
0
        public void ShouldBeAbleToSetEggStyle(EggStyle style)
        {
            var ee = new EvisceratedEggs();

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

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

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

            ee.Size = size;
            Assert.Equal(calories, ee.Calories);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
 }