Пример #1
0
 public void ShouldFailParseOnNonCorrectString()
 {
     CultureInfo[] cultureInfos = LanguageExtender.ToCultures("bgdfdsdf,en-US;q=0.7,ar-BH;q=0.3");
     cultureInfos.Length.Should().Be(2);
 }
Пример #2
0
 public void ShouldParseCorrectString()
 {
     CultureInfo[] cultureInfos = LanguageExtender.ToCultures("bg-BG,en-US;q=0.7,ar-BH;q=0.3");
     cultureInfos.Length.Should().Be(3);
 }