public void TestGetEncodingUnicode() { string file = TestHelper.TestLogPath + "single.log"; var log = new LogFile { FileName = file }; var result = log.GetEncoding(); Assert.AreEqual(Encoding.Unicode, result); }
public void TestGetEncodingAscii() { string file = TestHelper.TestLogPath + "DM521.log"; var log = new LogFile { FileName = file }; var result = log.GetEncoding(); Assert.AreEqual(Encoding.ASCII, result); }