コード例 #1
0
 public void GetAllCharactersInUnicodeCategory_CategoryShouldNotContainCharacter_CategoryDoesNotContainCharacter(UnicodeCategory category, char character)
 {
     Assert.False(CharacterUtils.GetAllCharactersInUnicodeCategory(category).Contains(character));
 }
コード例 #2
0
ファイル: QuoteParser.cs プロジェクト: irahopkinson/Glyssen
 private string GetOpeningPunctuationAsSingleString()
 {
     return(string.Join("", CharacterUtils.GetAllCharactersInUnicodeCategory(UnicodeCategory.OpenPunctuation)) + GetOtherPunctuationTreatedAsOpeningPunctuationAsSingleString());
 }
コード例 #3
0
 public void GetAllCharactersInUnicodeCategory_CategoryShouldContainCharacter_CategoryContainsCharacter(UnicodeCategory category, char character)
 {
     Assert.True(CharacterUtils.GetAllCharactersInUnicodeCategory(category).Contains(character));
 }