Exemplo n.º 1
0
        public void ArabRiverCheck()
        {
            NationFactory  nf        = new NationFactory();
            AbstractNation nation    = nf.getNation("Arab Bedouins");
            IComponent     component = nation.getComponent("water_source");

            Assert.Null(component);  //Checks for null
        }
Exemplo n.º 2
0
        public void InuitRiverCheck()
        {
            NationFactory  nf        = new NationFactory();
            AbstractNation nation    = nf.getNation("Inuit Hunters");
            IComponent     component = nation.getComponent("water_source");

            Assert.Null(component);  //Checks for null
        }
Exemplo n.º 3
0
        public void InuitCheck()
        {
            bool check = false;

            NationFactory  nf     = new NationFactory();
            AbstractNation actual = nf.getNation("Inuit Hunters");

            Assert.NotNull(actual);  //Checks for null

            if (actual is Inuit)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 4
0
        public void EgyptCheck()
        {
            bool check = false;

            NationFactory  nf     = new NationFactory();
            AbstractNation actual = nf.getNation("Egyptian Kings");

            Assert.NotNull(actual);  //Checks for null

            if (actual is Egypt)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 5
0
        public void BdCheck()
        {
            bool check = false;

            NationFactory  nf     = new NationFactory();
            AbstractNation actual = nf.getNation("Bangladeshi Farmers");

            Assert.NotNull(actual);  //Checks for null

            if (actual is Bangladesh)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 6
0
        public void ArabCheck()
        {
            bool check = false;

            NationFactory  nf     = new NationFactory();
            AbstractNation actual = nf.getNation("Arab Bedouins");

            Assert.NotNull(actual);  //Checks for null

            if (actual is Arab)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 7
0
        public void BdRiverCheck()
        {
            bool check = false;

            NationFactory  nf        = new NationFactory();
            AbstractNation nation    = nf.getNation("Bangladeshi Farmers");
            IComponent     component = nation.getComponent("water_source");

            Assert.NotNull(component);  //Checks for null

            if (component is BdRiver)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 8
0
        public void ArabTreeCheck()
        {
            bool check = false;

            NationFactory  nf        = new NationFactory();
            AbstractNation nation    = nf.getNation("Arab Bedouins");
            IComponent     component = nation.getComponent("tree");

            Assert.NotNull(component);  //Checks for null

            if (component is ArabTree)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 9
0
        public void InuitHouseCheck()
        {
            bool check = false;

            NationFactory  nf        = new NationFactory();
            AbstractNation nation    = nf.getNation("Inuit Hunters");
            IComponent     component = nation.getComponent("house");

            Assert.NotNull(component);  //Checks for null

            if (component is InuitHouse)
            {
                check = true;
            }
            Assert.True(check);
        }
Exemplo n.º 10
0
        public void EgyptRiverCheck()
        {
            bool check = false;

            NationFactory  nf        = new NationFactory();
            AbstractNation nation    = nf.getNation("Egyptian Kings");
            IComponent     component = nation.getComponent("water_source");

            Assert.NotNull(component);  //Checks for null

            if (component is EgyptRiver)
            {
                check = true;
            }
            Assert.True(check);
        }