Beispiel #1
0
        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;
 }
Beispiel #3
0
 public MazeRunnerServiceTests()
 {
     this.MazeServiceMock = new Mock <IMazeService>();
     this._sut            = new MazeRunnerService(MazeServiceMock.Object);
 }
Beispiel #4
0
 public Game(IMazeRunnerService mazeRunnerService, IMazeSolvingAlgorithm mazeSolvingAlgorithm = null)
 {
     this.MazeRunnerService    = mazeRunnerService;
     this.MazeSolvingAlgorithm = mazeSolvingAlgorithm;
 }