Example #1
0
        public void FirstLetterToUpperCase_WhenWhitespace_ReturnsWhitespace(string input)
        {
            var result = TextFormatter.FirstLetterToUpperCase(input);

            Assert.Equal(result, input);
        }
Example #2
0
        public void FirstLetterToUpperCase_CanConvert(string input, string expected)
        {
            var result = TextFormatter.FirstLetterToUpperCase(input);

            Assert.Equal(expected, result);
        }
Example #3
0
        public void FirstLetterToUpperCase_WhenNullOrEmpty_ReturnsEmptyString(string input)
        {
            var result = TextFormatter.FirstLetterToUpperCase(input);

            Assert.Equal(result, string.Empty);
        }