Exemplo n.º 1
0
 private void AssertOutofBoundException(functiondelegate d)
 {
     try {
         d.Invoke();
         Assert.Fail("command did not throw");
     }
     catch (RobotOutofBoundException) { }
 }
Exemplo n.º 2
0
 private void AssertInvalidRobotCommandException(functiondelegate d)
 {
     try
     {
         d.Invoke();
         Assert.Fail("command did not throw");
     }
     catch (InvalidRobotCommandException) { }
 }