public void TestGetGameGrid() { var gridGenerator = new GameGridGenerator(); var grid = gridGenerator.GenerateGameGrid(); Assert.IsTrue(grid != null && grid.Length > 0 && grid.Rank == 2 && grid[0, 0].GetType() == typeof(char)); }
public void TestGetLetterCombinations() { var gridGenerator = new GameGridGenerator(); var grid = gridGenerator.GenerateGameGrid(); var letterCombinationFinder = new LetterCombinationFinder(grid); var letterCombinations = letterCombinationFinder.GetLetterCombinations(); Assert.IsTrue(letterCombinations != null && letterCombinations.Count > 0 && letterCombinations.First().GetType() == typeof(string)); }
public WordGameMain() { var gridGenerator = new GameGridGenerator(); _grid = gridGenerator.GenerateGameGrid(); }