public void MovesBackFromDirectionFacing(string facing, int[] endPosition) { Rover rover = new Rover(facing, 5, 5); rover.Go("B"); CollectionAssert.AreEqual(endPosition, rover.Position); }
public void TurnsLeftAntiClockwise(string startFacing, string endFacing) { Rover rover = new Rover(startFacing, 0, 0); rover.Go("L"); Assert.AreEqual(endFacing, rover.Facing); }
public void ExecutesSequenceOfInstructions() { Rover rover = new Rover("N", 5, 5); rover.Go("RFF"); Assert.AreEqual("E", rover.Facing); CollectionAssert.AreEqual(new [] { 7, 5 }, rover.Position); }