public void ReturnAwinnerOrDrawGame(string currentBoard, char letter, bool expectedResult) { var game = new EndGame(); var actualResult = game.HasWinner(currentBoard, letter); Assert.AreEqual(actualResult, expectedResult); }
public static bool CheckIfGameEnded() { var checkEndOfGame = new EndGame(); if (CurrentBoard.Contains('.')) { return(checkEndOfGame.HasWinner(CurrentBoard, Letter)); } return(true); }