public void GivenNotStartedMazeRunnerService_WhenInvokeMethodBeforeStart_ThenThrowException(Action <IMazeRunnerService> action) { // Arrange this._sut = new MazeRunnerService(MazeServiceMock.Object); // Assert & Act var exception = Assert.Throws <Exception>(() => action(this._sut)); Assert.Equal(ErrorMessages.MazeRunnerNotStarted, exception.Message); }
public TremauxAlgorithm(IMazeRunnerService mazeRunnerService) { this.MazeRunnerService = mazeRunnerService; }
public MazeRunnerServiceTests() { this.MazeServiceMock = new Mock <IMazeService>(); this._sut = new MazeRunnerService(MazeServiceMock.Object); }
public Game(IMazeRunnerService mazeRunnerService, IMazeSolvingAlgorithm mazeSolvingAlgorithm = null) { this.MazeRunnerService = mazeRunnerService; this.MazeSolvingAlgorithm = mazeSolvingAlgorithm; }