public void SampleInputTests_First() { //Arrange var createRobotInstruction = "1 1 E"; var moveRobotInstruction = "RFRFRFRF"; //Act createRobotInstructionReader.Process(createRobotInstruction); moveRobotInstructionReader.Process(moveRobotInstruction); //Assert logger.Verify(l => l.Log(It.Is <string>(m => m == "1 1 E"))); }
public void ProcessMoveRobotInstruction_RobotAskedToMoveForwardOnce_RobotMovesOnce() { //Arrange string instruction = "F"; //Act moveInstructionReader.Process(instruction); //Assert robot.Verify(r => r.MoveForward(), Times.Once()); }