Пример #1
0
        public void StringIncludeUpperCharacters()
        {
            var stringService = new StringService();

            var charCounting = stringService.CountDuplicateChar("Indiviibilities");

            Assert.AreEqual(1, charCounting);
        }
Пример #2
0
        public void NoCharactersRepeat()
        {
            var stringService = new StringService();

            var charCounting = stringService.CountDuplicateChar("abcde");

            Assert.AreEqual(0, charCounting);
        }
Пример #3
0
        public void ManySameCharactersRepeat()
        {
            var stringService = new StringService();

            var charCounting = stringService.CountDuplicateChar("indivisibilities");

            Assert.AreEqual(2, charCounting);
        }