コード例 #1
0
        public void GetVariantCodes_VariantsSet_ReturnsString()
        {
            IEnumerable <VariantSubtag> variantSubtags = new VariantSubtag[] { "fonipa", "etic" };

            Assert.That(IetfLanguageTag.GetVariantCodes(variantSubtags), Is.EqualTo("fonipa-x-etic"));
        }
コード例 #2
0
        public void GetVariantCodes_EmptyVariants_ReturnsEmpty()
        {
            IEnumerable <VariantSubtag> variantSubtags = new VariantSubtag[] {};

            Assert.That(IetfLanguageTag.GetVariantCodes(variantSubtags), Is.Null);
        }