예제 #1
0
        public void TestCocktailDress()
        {
            var director = new Director();
            var designer = new DressDesigner();

            director.Designer = designer;
            director.MakeCocktailDress();
            var actual   = designer.GetDress().ListParts();
            var expected = "Info about dress : type - cocktail dress, fabric - chiffon, length - midi";

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void TestEveningDress()
        {
            var director = new Director();
            var designer = new DressDesigner();

            director.Designer = designer;
            director.MakeEveningDress();
            var actual   = designer.GetDress().ListParts();
            var expected = "Info about dress : type - evening dress, fabric - satin, length - maxi, with embroidery";

            Assert.AreEqual(expected, actual);
        }