public void GuideWordMatchesTextBaseWords_ThereAreMatches_True() { //Arrange WordCounter UserCounter = new WordCounter(); string userGuideWord = "bird"; string userTextBase = "Bird-bird, bird. Bird isn't the Word."; //Act UserCounter.SetMatchCount(userGuideWord, userTextBase); int matchCount = UserCounter.GetMatchCount(); //Assert Assert.AreEqual(2, matchCount); }
public ActionResult Matching() { WordCounter newCounter = new WordCounter(); string gWord = Request.Form["gWord"]; string tBase = Request.Form["tBase"]; newCounter.SetMatchCount(gWord, tBase); string userInput1 = newCounter.GetUserInput(); string userInput2 = newCounter.GetUserInput2(); string newMatchCount = newCounter.GetMatchCount().ToString(); char[] getQuizBaseWord = newCounter.GetTextBaseWord(); Console.WriteLine(getQuizBaseWord); return(View("Return", newCounter)); }