public void TestChar() { string file = @"D:\\201731107105\\test.txt"; WordCounter w = new WordCounter(); Assert.AreEqual(w.CountChar(file), 44); }