Esempio n. 1
0
        public void CanViewOrder()
        {
            var order1        = new Order();
            var goldjalapenos = new Topping("goldjalapenos", 250m);
            var jalaList      = $"Order ";

            for (int i = 0; i <= 3; i++)
            {
                order1.AddToOrderItems(goldjalapenos);
                jalaList = jalaList + " " + goldjalapenos.ToString();
            }

            var expected = jalaList;
            var actual   = order1.ToString();

            Assert.True(expected == actual);
        }
Esempio n. 2
0
 public override string ToString()
 {
     return(base.ToString() + ", " + Topping.ToString());
 }
Esempio n. 3
0
 public void Test_Topping_Name()
 {
     Assert.Equal("Test", value.ToString());
 }