public void Given_TurnLeftInstructionProcessor_When_InstructionIsNotL_Then_CannotProcess() { // Arrange TurnLeftInstructionProcessor instructionProcessor = new TurnLeftInstructionProcessor(); // Act bool canProcess = instructionProcessor.CanProcess('Z'); // Assert canProcess.Should().BeFalse(); }
public void Given_TurnLeftInstructionProcessor_When_InstructionIsB_Then_ProcessSucceed() { // Arrange TurnLeftInstructionProcessor instructionProcessor = new TurnLeftInstructionProcessor(); Robot robot = new Robot(new NorthDirection(), Position.Origin); // Act Action action = () => instructionProcessor.Process(robot, 'L'); // Assert action.Should().NotThrow <ArgumentException>(); }