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