Example #1
0
 public void ChineseLogCheckChecksumTest()
 {
     using (EACChecksum checksum = new EACChecksum())
     {
         var log = File.ReadAllText("TestFile\\EAC\\ChineseNoChecksum1.log", Encoding.Unicode);
         Assert.ThrowsException <NoChecksumException>(() => checksum.CheckChecksum(log), "CheckChecksum fail!");
     }
 }
Example #2
0
 public void EnglishLogCheckChecksumTest()
 {
     using (EACChecksum checksum = new EACChecksum())
     {
         var log = File.ReadAllText("TestFile\\EAC\\EnglishChecksum1.log", Encoding.Unicode);
         Assert.IsTrue(checksum.CheckChecksum(log), "CheckChecksum fail!");
     }
 }