Пример #1
0
        public void ChineseDetectTest()
        {
            EACTranslater Translater = new EACTranslater();
            var           result     = Translater.DetectLanguage(File.ReadAllText("TestFile\\EAC\\ChineseNoChecksum1.log"));

            Assert.IsTrue(result == EACTranslater.EACLogLanguage.ZH, "Chinese Detect Test fail!");
        }
Пример #2
0
        public void EnglishDetectTest()
        {
            EACTranslater Translater = new EACTranslater();
            var           result     = Translater.DetectLanguage(File.ReadAllText("TestFile\\EAC\\EnglishChecksum1.log", Encoding.Unicode));

            Assert.IsTrue(result == EACTranslater.EACLogLanguage.EN, "English Detect Test fail!");
        }