Esempio n. 1
0
        public void CheckIfMeatFactoryReturnsMeatFoodTypeTest()
        {
            MarianoItalianoRestaurant restaurant = new MarianoItalianoRestaurant(MeatMeal.Instance);

            var(pizza, pasta) = restaurant.PrepareMeal();

            Assert.That(pizza, Is.InstanceOf <Capriciosa>());
            Assert.That(pasta, Is.InstanceOf <BologneseSpaghetti>());
        }
Esempio n. 2
0
        public void CheckIfVegeFactoryReturnsVegeFoodTypeTest()
        {
            MarianoItalianoRestaurant chefMariano = new MarianoItalianoRestaurant(VegeMeal.Instance);

            var(pizza, pasta) = chefMariano.PrepareMeal();

            Assert.That(pizza, Is.InstanceOf <Margherita>());
            Assert.That(pasta, Is.InstanceOf <PestoSpaghetti>());
        }