public ActionResult Create(string word, string text, int times) { WordCounterScore newWordCounterScore = new WordCounterScore(word, text, times); newWordCounterScore.Save(); return(View("word", WordCounterScore.GetAll())); }
public void WordCounterScore_FindWordOnce_Equal() { WordCounterScore newWord = new WordCounterScore(); int expectedResult = 1; string test = "hello"; Assert.AreEqual(expectedResult, newWord.FindWord(test)); }