From e45976074e70fc88ea54695dbe722a2e7b35598f Mon Sep 17 00:00:00 2001 From: Fernando Tirolo Gomes Date: Mon, 11 Jan 2016 02:00:01 +0000 Subject: [PATCH] First broken test added, lets make it pass! :) --- .../PlutoRoverTests.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Tirolo.CodeKata.PlutoRover.Tests/PlutoRoverTests.cs b/src/Tirolo.CodeKata.PlutoRover.Tests/PlutoRoverTests.cs index 7b343fc..22335a4 100644 --- a/src/Tirolo.CodeKata.PlutoRover.Tests/PlutoRoverTests.cs +++ b/src/Tirolo.CodeKata.PlutoRover.Tests/PlutoRoverTests.cs @@ -11,9 +11,19 @@ namespace Tirolo.CodeKata.PlutoRover.Tests public class PlutoRoverTests { [Test] - public void Test() + public void Rover_Should_Move_Forward_And_Keep_Same_Heading_When_F_Command_Given() { - Assert.IsTrue(true); + // Arrange + PlutoRover plutoRover = new PlutoRover(); + + // Act + plutoRover.ExecuteCommand("F"); + + // Assert + var actualPlutoRoverPosition = plutoRover.ReportPostition(); + var expectedPlutoRoverPosition = "0,1,N"; + + Assert.AreEqual(expectedPlutoRoverPosition, actualPlutoRoverPosition); } } }