예제 #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);
 }
예제 #2
0
 public void TestCounterLength(string text, int expected)
 {
     ocucount.Counter c = new ocucount.Counter(text);
     Assert.Equal(c.dict.Count, expected);
 }