コード例 #1
0
        public void ForcedWinReturnsNextBestPlayNodeIfComputerIsToWinTest()
        {
            ComputerPlayer computer = new ComputerPlayer();

            LetterNode node = computer.ForcedWin(new LetterNode("gamma"));

            Assert.AreEqual('a', node.Letter());
        }
コード例 #2
0
        public void ForcedWinReturnsNullNodeIfComputerIsToLoseTest()
        {
            ComputerPlayer computer = new ComputerPlayer();

            LetterNode node = computer.ForcedWin(new LetterNode("game"));

            Assert.IsNull(node);
        }