Esempio n. 1
0
        public void appearsTwice()
        {
            RepeatCounter newCount = new RepeatCounter("a", "bb a a");
            int           expected = 2;
            int           actual   = newCount.Counts();

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void Thrice_withCaps()
        {
            RepeatCounter newCount = new RepeatCounter("A", "bb A a A bA bbAa AAaa");
            int           expected = 3;
            int           actual   = newCount.Counts();

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void CountRepeats_DoesNotAppearInSentence_0()
        {
            RepeatCounter newCount = new RepeatCounter("a", "bb");
            int           expected = 0;
            int           actual   = newCount.Counts();

            Assert.AreEqual(expected, actual);
        }