示例#1
0
 public void Combine_conversions()
 {
     Assert.Equal("_AbcĐCTRL", Identifier.Clean("9 -abcĐ😀ω\0"));
 }
示例#2
0
 public void Clean_single_letter()
 {
     Assert.Equal("A", Identifier.Clean("A"));
 }
示例#3
0
 public void Convert_kebab_to_camel_case()
 {
     Assert.Equal("àḂç", Identifier.Clean("à-ḃç"));
 }
示例#4
0
 public void Omit_lower_case_greek_letters()
 {
     Assert.Equal("MyΟFinder", Identifier.Clean("MyΟβιεγτFinder"));
 }
示例#5
0
 public void Clean_string_with_no_letters()
 {
     Assert.Equal(string.Empty, Identifier.Clean("😀😀😀"));
 }
示例#6
0
 public void Clean_empty_string()
 {
     Assert.Equal(string.Empty, Identifier.Clean(string.Empty));
 }
示例#7
0
 public void Clean_string_with_control_char()
 {
     Assert.Equal("myCTRLId", Identifier.Clean("my\0Id"));
 }
示例#8
0
 public void Clean_string_with_spaces()
 {
     Assert.Equal("my___Id", Identifier.Clean("my   Id"));
 }
示例#9
0
 public void Clean_clean_string()
 {
     Assert.Equal("àḃç", Identifier.Clean("àḃç"));
 }
示例#10
0
 public void Clean_string_with_numbers()
 {
     Assert.Equal("MyFinder", Identifier.Clean("1My2Finder3"));
 }
示例#11
0
 public void Clean_string_with_special_characters()
 {
     Assert.Equal("MyFinder", Identifier.Clean("My😀😀Finder😀"));
 }