public void EnumLanguages() { ContentLanguageBuilder b = new ContentLanguageBuilder(); b.Add(Language.French); b.Add(Language.German); Assert.Equal("fr, de", b.Build()); b.Reset(); Assert.Null(b.Build()); }
public void MultipleLanguages() { ContentLanguageBuilder b = new ContentLanguageBuilder(); b.Add("da-DK"); b.Add("en-US"); Assert.Equal("da-DK, en-US", b.Build()); b.Reset(); Assert.Null(b.Build()); }