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!"); } }
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!"); } }