예제 #1
0
        public void GrabAllWords()
        {
            var path = @"D:\github\WhiteStone\WhiteStone.Test\LanguageTranslations\SampleEnglishWords.txt";

            var words = SesliSözlük.GrabAllWords(File.ReadAllLines(path).Where(line => line.HasValue()));

            FileHelper.WriteAllText(path + ".output.txt", JsonHelper.Serialize(words));
        }
예제 #2
0
        public void TranslateEnglishToTurkish()
        {
            var wordInfo = SesliSözlük.GetWord("mean");

            Assert.AreEqual("min", wordInfo.TurkishPronanciation);

            Assert.AreEqual(220, wordInfo.Means.Count);

            Assert.AreEqual(2, wordInfo.Means[3].SampleSentences.Count);

            Assert.AreEqual("orta", wordInfo.Means[3].Definition);
        }