Example #1
0
        public void CreateComputerCheckName()
        {
            AbstractFactory abstractFactoryP = new FactoryFA(PolandFactory.Instance);
            var             computer         = abstractFactoryP.CreateComputer();

            Assert.AreEqual("SuperComputer", computer.ComputerName);
        }
Example #2
0
        public void CreateComputerCheckIsNotNull()
        {
            AbstractFactory abstractFactory = new FactoryFA(PolandFactory.Instance);
            var             computer        = abstractFactory.CreateComputer();

            Assert.IsNotNull(computer);
        }