Example #1
0
        public void TestInsufficiencyNotification()
        {
            Refrigerator refrigerator = new Refrigerator();
            Tomato       tomato       = new Tomato();

            refrigerator.AddVegetable(tomato, 20);
            refrigerator.SetMinimumQuantity(tomato, 8);
            refrigerator.TakeOutVegetable(tomato, 15);

            Assert.Equal("Sent notification to refrigerator", refrigerator.SendNotification());
        }