Exemple #1
0
 public void TestCounter(string text, string word, int expected)
 {
     ocucount.Counter c = new ocucount.Counter(text);
     Assert.Equal(c.getWordCount(word).num, expected);
 }
Exemple #2
0
 public void TestCounterLength(string text, int expected)
 {
     ocucount.Counter c = new ocucount.Counter(text);
     Assert.Equal(c.dict.Count, expected);
 }