public void RestartCommandWithValidArgumentsShouldNotThrow() { var mockedBasicUIRenderer = new Mock<BasicUIRenderer>(); var mockedMatrix = new Mock<Matrix>(5, 5); IMover move = new Mover(); var mockedDefaultCommand = new Mock<RestartCommand>(mockedBasicUIRenderer.Object, "exit", mockedMatrix.Object, move); mockedDefaultCommand.Object.Execute(); mockedDefaultCommand.Verify(x => x.Execute(), Times.Once()); }
public void ProceedCommandShouldThrow() { IBasicUIRenderer renderer = new ConsoleUIRenderer(); var highscore = new Highscore(); var basicIOProvider = new BasicIOProvider<BasicUIRenderer>(renderer, highscore); var matrix = new Matrix(5, 5); var moves = new Mover(); basicIOProvider.ProceedCommand("ab", matrix, moves); }