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