Beispiel #1
0
        public void SupportedLanaugesTest()
        {
            GoogleTranslate google = new GoogleTranslate(_apiKey);

            google.PrettyPrint = false;
            List <TranslationLanaguage> results = google.GetSupportedLanguages();

            //We know that english and german is in the list. So they should be there
            Assert.Contains(results, lang => lang.Language == Language.English.GetStringValue());
            Assert.Contains(results, lang => lang.Language == Language.German.GetStringValue());
        }