public void WhenNoMovesWasDoneTheGameIsNotOver() { var board = new Mock <IBoard>(); var game = new Game(board.Object, 2); Assert.False(game.IsOver()); }
public void WhenOnBoardIsFiveSameMarksInLineTheGameIsOver() { var board = new Mock <IBoard>(); var game = new Game(board.Object, 2); board.Setup(b => b.CountMarksInLine(0)).Returns(5); Assert.True(game.IsOver()); board.Verify(b => b.CountMarksInLine(0)); }
public void WhenOnBoardIsFiveSameMarksInLineTheGameIsOver() { var board = new Mock<IBoard>(); var game = new Game(board.Object, 2); board.Setup(b => b.CountMarksInLine(0)).Returns(5); Assert.True(game.IsOver()); board.Verify(b => b.CountMarksInLine(0)); }
public void WhenNoMovesWasDoneTheGameIsNotOver() { var board = new Mock<IBoard>(); var game = new Game(board.Object, 2); Assert.False(game.IsOver()); }