public void PriceIsCorrect(Size size, decimal price)
        {
            var yt = new YoureToast();

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

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

            yt.Size = size;
            Assert.Equal(size, yt.Size);
            Assert.Equal(name, yt.Name);
        }
Пример #4
0
        /// <summary>
        /// Handler for event of You're Toast 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 YoureToast_Click(object sender, EventArgs e)
        {
            YoureToastCustom ytcWindow = new YoureToastCustom();
            YoureToast       yt        = new YoureToast();

            ytcWindow.ShowDialog();
            yt = ytcWindow.yt;
            OrderList.Add(yt);
        }
        public void SpecialInstructionsShouldBeEmpty()
        {
            var yt = new YoureToast();

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

            Assert.Equal("Thick, crusty slabs of Texas Toast.", yt.Description);
        }
Пример #7
0
 public YoureToastCustom()
 {
     yt = new YoureToast();
     InitializeComponent();
 }