public ActionResult Results()
        {
            Anagramer     newWord = new Anagramer(Request.Form["inputWord"]);
            List <string> result  = newWord.GetValue(newWord.GetWord());

            return(View(result));
        }
Esempio n. 2
0
        public void GetValue2()
        {
            //Arrange
            Anagramer newWord = new Anagramer("alert");

            var output = new List <string> {
                "alert", "alter", "later"
            };

            //Act
            List <string> result = newWord.GetValue(newWord.GetWord());

            //Assert
            CollectionAssert.AreEqual(result, output);
        }
Esempio n. 3
0
        public void GetValue()
        {
            //Arrange
            Anagramer newWord = new Anagramer("beast");

            var output = new List <string> {
                "abets", "baste", "betas", "beast", "beats"
            };

            //Act
            List <string> result = newWord.GetValue(newWord.GetWord());

            //Assert
            CollectionAssert.AreEqual(result, output);
        }