public void Test_WhenRobotIsFacingWestAndInstructedToTurnRight_ItShouldFaceNorthDirection() { //arrange IDirectionChanger directionChanger = new DirectionChanger(); Direction expectedDirection = Direction.North; //act Direction resultDirection = directionChanger.GetDirection(Direction.West, Rotation.Clockwise); //assert Assert.AreEqual(resultDirection, expectedDirection); }
public void Test_WhenRobotIsFacingSouthAndInstructedToTurnLeft_ItShouldFaceEastDirection() { //arrange IDirectionChanger directionChanger = new DirectionChanger(); Direction expectedDirection = Direction.East; //act Direction resultDirection = directionChanger.GetDirection(Direction.South, Rotation.Anticlockwise); //assert Assert.AreEqual(resultDirection, expectedDirection); }