예제 #1
0
 public void Should_count_cjk_words()
 {
     Assert.Equal(3, CharactersExtensions.CharacterCount("空手道"));
 }
예제 #2
0
 public void Should_count_katakana_words()
 {
     Assert.Equal(9, CharactersExtensions.CharacterCount("カラテ カラテ カラテ"));
 }
예제 #3
0
 public void Should_count_english_characters_with_extra_whitespaces()
 {
     Assert.Equal(13, CharactersExtensions.CharacterCount("You can't do  that. "));
 }
예제 #4
0
 public void Should_count_cjk_and_english_words()
 {
     Assert.Equal(23, CharactersExtensions.CharacterCount("Makes probably no sense: 空手道"));
 }
예제 #5
0
 public void Should_count_english_characters_with_punctuation()
 {
     Assert.Equal(19, CharactersExtensions.CharacterCount("You can't do that, Mister."));
 }
예제 #6
0
 public void Should_count_with_digits()
 {
     Assert.Equal(8, CharactersExtensions.CharacterCount("Hello 123"));
 }
예제 #7
0
 public void Should_count_english_characters()
 {
     Assert.Equal(13, CharactersExtensions.CharacterCount("You can't do that"));
 }
예제 #8
0
 public void Should_count_zero_characters_for_whitspace_text()
 {
     Assert.Equal(0, CharactersExtensions.CharacterCount("  "));
 }
예제 #9
0
 public void Should_count_zero_characters_for_empty_text()
 {
     Assert.Equal(0, CharactersExtensions.CharacterCount(string.Empty));
 }