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