public void GetVariantCodes_VariantsSet_ReturnsString() { IEnumerable <VariantSubtag> variantSubtags = new VariantSubtag[] { "fonipa", "etic" }; Assert.That(IetfLanguageTag.GetVariantCodes(variantSubtags), Is.EqualTo("fonipa-x-etic")); }
public void GetVariantCodes_EmptyVariants_ReturnsEmpty() { IEnumerable <VariantSubtag> variantSubtags = new VariantSubtag[] {}; Assert.That(IetfLanguageTag.GetVariantCodes(variantSubtags), Is.Null); }