Пример #1
0
 public void testAnagramList_beardbread_bread()
 {
     List<string> dummyList = new List<string> {"Bread"};
       List<string> outputList = new List<string> {"Bread"};
       Anagram newAnagram = new Anagram("beard", dummyList);
       Assert.Equal(newAnagram.AnagramList(), outputList);
 }
Пример #2
0
 public HomeModule()
 {
     Get["/"] = _ => {
     return View["index.cshtml"];
       };
       Post["/output"] = _ =>
       {
     List<string> dummyList = new List<string>
     {
       Request.Form["listItem1"],
       Request.Form["listItem2"],
       Request.Form["listItem3"],
       Request.Form["listItem4"],
       Request.Form["listItem5"]
     };
     Anagram newAnagram = new Anagram(Request.Form["userWord"], dummyList);
     List<string> outputList = newAnagram.AnagramList();
     return View["output.cshtml", outputList];
       };
 }