public async Task ShouldFailValidationRobotNotOnTheTableTest() { var leftCommand = new LeftCommand(); Robot robot = new Robot(Table.GetTableInstance()); var result = await leftCommand.Excute(robot); result.ShouldBe(false); }
public async Task ShouldSucceedTest(Direction from, Direction expected) { var leftCommand = new LeftCommand(); Robot robot = new Robot(Table.GetTableInstance()); robot.SetPositionOnTable(new Position(0, 0, from)); var result = await leftCommand.Excute(robot); result.ShouldBe(true); robot.Direction.ShouldBe(expected); }