コード例 #1
0
        public void There_Should_Be_No_Winner__Turn()
        {
            var checker = new TicTacToeHorizontalChecker();
            var spaces  = GetGameSpaces();

            var actual = checker.CheckWinner(TicTacToeEnum._, spaces);

            actual.ShouldBeFalse();
        }
コード例 #2
0
        public void There_Should_Be_Winner_O_Bottom()
        {
            var checker = new TicTacToeHorizontalChecker();
            var spaces  = GetGameSpaces();

            spaces[2, 0].Select(TicTacToeEnum.O);
            spaces[2, 1].Select(TicTacToeEnum.O);
            spaces[2, 2].Select(TicTacToeEnum.O);

            var actual = checker.CheckWinner(TicTacToeEnum.O, spaces);

            actual.ShouldBeTrue();
        }
コード例 #3
0
        public void It_Should_Create_A_New_Checker()
        {
            var actual = new TicTacToeHorizontalChecker();

            actual.ShouldNotBeNull();
        }