Exemplo n.º 1
0
        public void WhenNoMovesWasDoneTheGameIsNotOver()
        {
            var board = new Mock <IBoard>();
            var game  = new Game(board.Object, 2);

            Assert.False(game.IsOver());
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
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));
 }
Exemplo n.º 4
0
 public void WhenNoMovesWasDoneTheGameIsNotOver()
 {
     var board = new Mock<IBoard>();
     var game = new Game(board.Object, 2);
     Assert.False(game.IsOver());
 }