Beispiel #1
0
        public void StringToUpperAndLowerInvariant()
        {
            //                   00000000000111111111222222
            //                   01234567890123456789012345
            const string text          = "Lorem ipsum dolor sit amet";
            const string expectedUpper = "LOREM IPSUM DOLOR SIT AMET";
            const string expectedLower = "lorem ipsum dolor sit amet";

            Assert.AreEqual(expectedUpper, String2.ToUpperInvariant(text));
            Assert.AreEqual(expectedLower, String2.ToLowerInvariant(text));
        }