Example #1
0
        public void GetWordChainForAbacaAback()
        {
            string firstWord = "abaca";
            string lastWord  = "aback";

            var generator       = new WordChainGenerator(firstWord, lastWord);
            var wordChainResult = generator.GetWordChain();

            Assert.Equal("abaca aback", wordChainResult);
        }
Example #2
0
        public void GetWordChainForCatCotCog()
        {
            string firstWord = "cat";
            string lastWord  = "cog";

            var generator       = new WordChainGenerator(firstWord, lastWord);
            var wordChainResult = generator.GetWordChain();

            Assert.Equal("cat cot cog", wordChainResult);
        }