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