public void PriceIsCorrect(Size size, decimal price)
        {
            var ml = new MissingLinks();

            ml.Size = size;
            Assert.Equal(price, ml.Price);
        }
        public void CaloriesAreCorrectForSize(Size size, uint calories)
        {
            var ml = new MissingLinks();

            ml.Size = size;
            Assert.Equal(calories, ml.Calories);
        }
        public void NameIsCorrectForSize(Size size, string name)
        {
            var ml = new MissingLinks();

            ml.Size = size;
            Assert.Equal(size, ml.Size);
            Assert.Equal(name, ml.Name);
        }
Example #4
0
        /// <summary>
        /// Handler for event of Missing Links 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 MissingLinks_Click(object sender, EventArgs e)
        {
            MissingLinksCustom mlcWindow = new MissingLinksCustom();
            MissingLinks       ml        = new MissingLinks();

            mlcWindow.ShowDialog();
            ml = mlcWindow.ml;
            OrderList.Add(ml);
        }
        public void SpecialInstructionsShouldBeEmpty()
        {
            var ml = new MissingLinks();

            Assert.Equal(0, ml.SpecialInstructions.Count);
        }
        public void DescriptionIsCorrect()
        {
            var ml = new MissingLinks();

            Assert.Equal("Rich sage sausage links cooked to perfection.", ml.Description);
        }
 public MissingLinksCustom()
 {
     ml = new MissingLinks();
     InitializeComponent();
 }