Ejemplo n.º 1
0
        public ActionResult Form()
        {
            string         groupInput    = Request.Form["groupofwords"];
            string         specificInput = Request.Form["specificword"];
            ReapeatCounter userInput     = new ReapeatCounter(groupInput, specificInput);

            return(View("Index", userInput));
        }
Ejemplo n.º 2
0
        public void Test_ReapeatCounter_Multiple_Words_True()
        {
            ReapeatCounter testReapeatCounter = new ReapeatCounter("I Love to Love", "Love");

            Assert.AreEqual(2, testReapeatCounter.FindDuplicates());
        }
Ejemplo n.º 3
0
        public void Test_ReapeatCounter_Case_Sensitive_True()
        {
            ReapeatCounter testReapeatCounter = new ReapeatCounter("I Love to Love", "i");

            Assert.AreEqual(1, testReapeatCounter.FindDuplicates());
        }
Ejemplo n.º 4
0
        public void Test_ReapeatCounter_Single_Word_True()
        {
            ReapeatCounter testReapeatCounter = new ReapeatCounter("I Love you", "Love");

            Assert.AreEqual(1, testReapeatCounter.FindDuplicates());
        }