Exemple #1
0
        private static string ProcessString(string s, int number)
        {
            var code = _codesService.GetStringCode(s);

            return($"Case #{number}: {code}");
        }
        public void GetStringCode_AllAlphabetWithRepeats_ReturnsEqualString()
        {
            var result = _codesService.GetStringCode("abbccdefghijkl  mnopqrstuvwxyz");

            Assert.AreEqual("2 22 22 222 2223 33 3334 44 4445 55 5550 06 66 6667 77 777 77778 88 8889 99 999 9999", result);
        }