コード例 #1
0
        public void CountRepeats_WillReturnWordsWithSymbolsAsMatch_true()
        {
            RepeatCounter model = new RepeatCounter();

            model.CountRepeats("co*ing", "i love surf co*ing co*ing adventures, all co<ing", "symbols");
            Assert.Equal(2, model.GetCount());
        }
コード例 #2
0
        public void RepeatCounterUI_WillCreateAnInstanceListUponCreation_true()
        {
            RepeatCounter model = new RepeatCounter();

            model.CountRepeats("cats", "i just love cats and their little faces", "spaces");
            List <RepeatCounter> models = new List <RepeatCounter>()
            {
            };

            models = RepeatCounter.GetAll();
            Console.WriteLine("You searched for: " + model.GetWord());
            Console.WriteLine("In this sentence: " + model.GetSentence());
            Console.WriteLine("And it matched: " + model.GetCount() + " times");
        }