public void RepeatCounter_CheckInput_None() { RepeatCounter newCount = new RepeatCounter("", "cat"); bool inputCheck = newCount.CheckInput(); Assert.AreEqual(inputCheck, false); }
static void Main() { Console.WriteLine("Type in a sentence."); string userSentence = Console.ReadLine(); Console.WriteLine("What is the word you are interested in counting?"); string userWord = Console.ReadLine(); RepeatCounter newCounter = new RepeatCounter(userSentence, userWord); if (userSentence == "") { newCounter.CheckInput(); } else { newCounter.TokenCount(); Console.WriteLine(newCounter.TokensCount); } }