public void ForcedWinReturnsNextBestPlayNodeIfComputerIsToWinTest() { ComputerPlayer computer = new ComputerPlayer(); LetterNode node = computer.ForcedWin(new LetterNode("gamma")); Assert.AreEqual('a', node.Letter()); }
public void ForcedWinReturnsNullNodeIfComputerIsToLoseTest() { ComputerPlayer computer = new ComputerPlayer(); LetterNode node = computer.ForcedWin(new LetterNode("game")); Assert.IsNull(node); }