Skip to content

Commit

Permalink
Broken test from spinning right added.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirolo committed Jan 11, 2016
1 parent 23b37ba commit 2b81325
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Tirolo.CodeKata.PlutoRover.Tests/PlutoRoverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,21 @@ public void Rover_Should_Be_At_1_0_E_When_FLFFLFLFFF_Command_Given()

Assert.AreEqual(expectedRoverPosition, actualRoverPosition);
}

[Test]
public void Rover_Should_Spin_Right_And_Keep_Same_Position_When_R_Command_Given()
{
// Arrange
Domain.PlutoRover plutoRover = new Domain.PlutoRover();

// Act
plutoRover.ExecuteCommand("R");

// Assert
var actualRoverPosition = plutoRover.ReportPosition();
var expectedRoverPosition = "0,0,N";

Assert.AreEqual(expectedRoverPosition, actualRoverPosition);
}
}
}

0 comments on commit 2b81325

Please sign in to comment.