public void AnagramChecker_WillCheckListForAnagrams_List()
        {
            List <string> words = new List <string> {
                "Drow", "Rowd"
            };
            List <string> otherWords = new List <string> {
                "jo", "betty", "joshua", "Drow", "hi", "nope", "Rowd"
            };
            Word newWord = new Word(otherWords, "Word");

            CollectionAssert.AreEqual(words, newWord.AnagramChecker(newWord));
        }
        public ActionResult Results()
        {
            List <string> wordsToCompare = new List <string> {
            };

            foreach (string listItem in Request.Form["list-items[]"])
            {
                wordsToCompare.Add(listItem);
            }
            Word          newWord            = new Word(wordsToCompare, Request.Form["base-word"]);
            List <string> successfulAnagrams = newWord.AnagramChecker(newWord);

            return(View(successfulAnagrams));
        }