Esempio n. 1
0
        public void SanitizeForCSharp_StringInLowercaseWithSpacesAndDiacritics_Sanitized()
        {
            var result = FieldNameSanitizer.SanitizeForCSharp("ččČ ććĆ đ à É");

            Assert.Equal("CccCccDAE", result);
        }
Esempio n. 2
0
        public void SanitizeForCSharp_StringWithDots_Sanitized()
        {
            var result = FieldNameSanitizer.SanitizeForCSharp("nice.name");

            Assert.Equal("Nice_Name", result);
        }
Esempio n. 3
0
        public void SanitizeForCSharp_StringInCamelCase_Sanitized()
        {
            var result = FieldNameSanitizer.SanitizeForCSharp("niceName");

            Assert.Equal("Nicename", result);
        }
Esempio n. 4
0
        public void SanitizeForCSharp_StringInLowercaseWithSpaces_Sanitized()
        {
            var result = FieldNameSanitizer.SanitizeForCSharp("nice name");

            Assert.Equal("NiceName", result);
        }
Esempio n. 5
0
        public void SanitizeForCSharp_StringInPascalCase_NoChanges()
        {
            var result = FieldNameSanitizer.SanitizeForCSharp("Nicename");

            Assert.Equal("Nicename", result);
        }