Exemple #1
0
        public void TryDecoratorWithBigHouse()
        {
            House house        = new BigCoolHouse();
            var   bigHouseCost = house.GetCost();

            house = new Garden(house);
            var bigHouseCostWithGarden = house.GetCost();

            Assert.True(bigHouseCost < bigHouseCostWithGarden);
        }