public void AddToFreezerApprovalTest()
        {
            var freezer = new IceCreamFreezer();
            freezer.AddIceCream(new IceCreamProduct { Name = "Tastey" });
            freezer.AddIceCream(new IceCreamProduct { Name = "Lite" });

            Approvals.VerifyAll("Freezer Contents Test:", freezer.Contents(), "Ice Cream");
        }
예제 #2
0
        public void AddToFreezerApprovalTest()
        {
            var freezer = new IceCreamFreezer();

            freezer.AddIceCream(new IceCreamProduct {
                Name = "Tastey"
            });
            freezer.AddIceCream(new IceCreamProduct {
                Name = "Lite"
            });

            Approvals.VerifyAll("Freezer Contents Test:", freezer.Contents(), "Ice Cream");
        }
예제 #3
0
 /// <summary>
 /// Add Ice Cream to the Storage unit.
 /// </summary>
 /// <param name="iceCreamProduct"></param>
 public void AddIceCreamToFreezer(Lib.IceCreamProduct iceCreamProduct)
 {
     _freezer.AddIceCream(iceCreamProduct);
     ResetListBox();
 }