public void TestWordNotFound() { WordCount word_counter = new WordCount(getFileReader("word1count1.txt"), getTrie()); word_counter.count(); int count = (word_counter.getDict())["word3"]; }
public void TestCount2() { WordCount word_counter = new WordCount(getFileReader("word1count2.txt"), getTrie()); word_counter.count(); int actual = (word_counter.getDict())["word1"]; int expected = 2; Assert.AreEqual(expected, actual, "expected :" + expected + " did not match actual :" + actual); }