Beispiel #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
        }
Beispiel #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
        }
Beispiel #3
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);
        }
Beispiel #4
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);
        }
Beispiel #5
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);
        }
Beispiel #6
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);
        }