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

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

            Assert.IsNotNull(computer);
        }