public ActionResult Show() { MysteryWord newWord = MysteryWord.Generate(); Console.WriteLine(newWord.Word); Console.WriteLine(MysteryWord.randomId); MysteryWord.counter++; return(View(newWord)); }
public void Generate_ReturnsRandomWord_MysteryWord() { MysteryWord newWord = MysteryWord.Generate(); string listWord = newWord.Word; string result; if (MysteryWord._hard.Contains(newWord)) { result = listWord; } else { result = null; } Assert.AreEqual(result, listWord); }