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