コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }