public void AddWord_words() { wordCounter wc = new wordCounter("yoyo", "yoyo yoyo yoyo"); int Repeat = wc.AddWord(); int numTimes = 3; Assert.AreEqual(numTimes, Repeat); }
public ActionResult Results() { wordCounter wordcounter = new wordCounter(Request.Form["word"], Request.Form["sentence"] ); int num = wordcounter.AddWord(); return(View("Results", wordcounter)); }