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

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