Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
 public WordGameMain()
 {
     var gridGenerator = new GameGridGenerator();
     _grid = gridGenerator.GenerateGameGrid();
 }