public void TestIsValidLanguage() { string[] validLanguages = { "en", "es" }; Assert.True(RDFExtensions.IsValidLanguage("en", validLanguages)); Assert.True(RDFExtensions.IsValidLanguage("es", validLanguages)); Assert.False(RDFExtensions.IsValidLanguage("de", validLanguages)); }
public void TestIsValidLanguageDefault() { Assert.True(RDFExtensions.IsValidLanguage("en")); Assert.False(RDFExtensions.IsValidLanguage("de")); }