public void EnglishTranslateToChineseTest() { EACTranslater Translater = new EACTranslater(); var result = Translater.Translate(File.ReadAllText("TestFile\\EAC\\EnglishChecksum1.log"), EACTranslater.EACLogLanguage.ZH); Assert.IsTrue(Regex.IsMatch(result, "可靠Secure"), "English Translate To Chinese Test fail!"); }
public void ChineseTranslateToEnglishTest() { EACTranslater Translater = new EACTranslater(); var result = Translater.Translate(File.ReadAllText("TestFile\\EAC\\ChineseNoChecksum1.log")); Assert.IsTrue(Regex.IsMatch(result, "End of status report"), "Chinese Translate Test fail!"); }