Exemple #1
0
        public void Test008_GivenWordSearch_GetDownwardDiagonalsInWordSearchReturnsWordAndLocationOfLetters()
        {
            WordSearch wordSearch = new WordSearch();

            // Forward
            string input = wordSearch.GetInput("TestDocument002.txt");

            Assert.AreEqual("FILE: (0,2),(1,3),(2,4),(3,5)", wordSearch.GetDownwardDiagonalWords(input));

            // ----------------------------------------------------------------------------------------------
            // Reverse
            input = wordSearch.GetInput("TestDocument004_InverseOf002.txt");

            Assert.AreEqual("FILE: (6,4),(5,3),(4,2),(3,1)", wordSearch.GetDownwardDiagonalWords(input));
        }