示例#1
0
 @Test
 public void test_checkConditionBlackAnt2() {
   // Creates a new Ant with colour Red.
   Ant a = new Ant(w, AntColour.Red);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.BlackAnt) == false);
 }
示例#2
0
 @Test
 public void test_checkConditionBlackAnt() {
   // Creates a new Ant with colour Black.
   Ant a = new Ant(w, AntColour.Black);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.BlackAnt) == true);
 }
示例#3
0
 @Test
 public void test_checkConditionRedAnt2() {
   Ant a = new Ant(w, AntColour.Black);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.RedAnt) == false);
 }
示例#4
0
 @Test
 public void test_checkConditionRedAnt() {
   Ant a = new Ant(w, AntColour.Red);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.RedAnt) == true);
 }