public void Validate_ValidTag_ReturnsTrue() { string message; Assert.That( IetfLanguageTag.Validate(new LanguageSubtag("en"), new ScriptSubtag("Latn"), new RegionSubtag("US"), new List <VariantSubtag>(), out message), Is.True); }
public void Validate_InvalidTag_ReturnsFalse() { string message; Assert.That( IetfLanguageTag.Validate(new LanguageSubtag("a"), new ScriptSubtag(""), new RegionSubtag(""), new List <VariantSubtag>(), out message), Is.False); }