public void Lawn_Mower_Should_Not_Change_Direction_And_Throw_Argument_Exception_If_Command_Is_Not_L_Or_R() { var lawnMower = new LawnMower(0, 0, LawnMower.Direction.W, 5, 5); lawnMower.ChangeDirection(LawnMower.Command.M); }
public void Lawn_Mower_Should_Head_South_When_Command_Is_Right_If_Is_Heading_East() { var lawnMower = new LawnMower(0, 0, LawnMower.Direction.E, 5, 5); lawnMower.ChangeDirection(LawnMower.Command.R); Assert.AreEqual(LawnMower.Direction.S, lawnMower.GetPosition().Heading); }
public void Lawn_Mower_Should_Head_West_When_Command_Is_Left_If_Is_Heading_North() { var lawnMower = new LawnMower(0, 0, LawnMower.Direction.N, 5, 5); lawnMower.ChangeDirection(LawnMower.Command.L); Assert.AreEqual(LawnMower.Direction.W, lawnMower.GetPosition().Heading); }