public ActionResult Form() { string groupInput = Request.Form["groupofwords"]; string specificInput = Request.Form["specificword"]; ReapeatCounter userInput = new ReapeatCounter(groupInput, specificInput); return(View("Index", userInput)); }
public void Test_ReapeatCounter_Multiple_Words_True() { ReapeatCounter testReapeatCounter = new ReapeatCounter("I Love to Love", "Love"); Assert.AreEqual(2, testReapeatCounter.FindDuplicates()); }
public void Test_ReapeatCounter_Case_Sensitive_True() { ReapeatCounter testReapeatCounter = new ReapeatCounter("I Love to Love", "i"); Assert.AreEqual(1, testReapeatCounter.FindDuplicates()); }
public void Test_ReapeatCounter_Single_Word_True() { ReapeatCounter testReapeatCounter = new ReapeatCounter("I Love you", "Love"); Assert.AreEqual(1, testReapeatCounter.FindDuplicates()); }