public void check_for_rover_exceeding_the_map_limits() { string[] instructions = { "5 5", "1 2 N", "LMM" }; var iset = new InstructionSetForRover(); Assert.Throws <ArgumentException>(() => iset.PassInstructions(instructions)); }
public void Basic_RoverInstructionTestExtra() { string[] instructions = { "5 5", "1 2 N", "RRMM" }; var expectedResponse = "3 2 E"; var iset = new InstructionSetForRover(); var response = iset.PassInstructions(instructions); response.Should().Be(expectedResponse); }