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 }
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 }
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); }
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); }
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); }
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); }