public void ConstructAcerLaptop_ShouldReturnAnAcerLaptop()
        {
            var laptopFactory = new LaptopFactory();

            LaptopBuilder acerLaptopBuilder = laptopFactory.ConstructAcerLaptop();

            Assert.IsNotNull(acerLaptopBuilder);
            StringAssert.Contains(acerLaptopBuilder.ToString(), "Acer");
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            var laptopFactory = new LaptopFactory();

            var acerLaptop = laptopFactory.ConstructAcerLaptop();

            Console.WriteLine(acerLaptop);

            var lenovoLaptop = laptopFactory.ConstructLenovoLaptop();

            Console.WriteLine(lenovoLaptop);
        }