Exemple #1
0
        public void WordPuzzle_SolvePuzzle_5()
        {
            // prepare
            var mockLogger     = new Mock <ILogger>();
            var wordDictionary = new WordDictionary(mockLogger.Object);
            var wordSearch     = new WordSearch(wordDictionary, mockLogger.Object);

            // execute
            wordDictionary.LoadDictionaryFile("");
            wordSearch._firstWord = "cool";
            wordSearch._lastWord  = "span";
            var results = wordSearch.GetFastestRoute();

            // assert
            Assert.AreEqual(5, results.Count - 1);
        }