Skip to content

Commit

Permalink
#76596 update icu version for norwegian culture (#77003)
Browse files Browse the repository at this point in the history
* #76596 update icu version for norwegian culture
  • Loading branch information
mkhamoyan authored Oct 17, 2022
1 parent a54293e commit 4574ccb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.NETCore.Runtime.ICU.Transport" Version="8.0.0-alpha.1.22512.11">
<Dependency Name="Microsoft.NETCore.Runtime.ICU.Transport" Version="8.0.0-alpha.1.22513.1">
<Uri>https://github.com/dotnet/icu</Uri>
<Sha>a14f6037f69588c9c0af85c3b78cebbe3eb33982</Sha>
</Dependency>
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<MicrosoftNETILLinkTasksVersion>7.0.100-1.22514.1</MicrosoftNETILLinkTasksVersion>
<MicrosoftNETILLinkAnalyzerPackageVersion>$(MicrosoftNETILLinkTasksVersion)</MicrosoftNETILLinkAnalyzerPackageVersion>
<!-- ICU -->
<MicrosoftNETCoreRuntimeICUTransportVersion>8.0.0-alpha.1.22512.11</MicrosoftNETCoreRuntimeICUTransportVersion>
<MicrosoftNETCoreRuntimeICUTransportVersion>8.0.0-alpha.1.22513.1</MicrosoftNETCoreRuntimeICUTransportVersion>
<!-- MsQuic -->
<MicrosoftNativeQuicMsQuicVersion>2.1.1</MicrosoftNativeQuicMsQuicVersion>
<SystemNetMsQuicTransportVersion>7.0.0-alpha.1.22406.1</SystemNetMsQuicTransportVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,5 +822,15 @@ public void CultureNotFoundExceptionTest()
e = AssertExtensions.Throws<CultureNotFoundException>("culture", () => new CultureInfo(0x1000));
Assert.Equal(0x1000, e.InvalidCultureId);
}

[Theory]
[PlatformSpecific(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] // for these platforms cultures are taken from icu filters
[InlineData("nb-NO")]
public void ContainsCulture(string culture)
{
var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
var containsCulture = cultures.Any(x=>x.Name == culture);
Assert.True(containsCulture);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ public static IEnumerable<object[]> Ctor_String_TestData()
yield return new object[] { "ms-MY", new [] { "ms-MY" } };
yield return new object[] { "mt", new [] { "mt" }, true };
yield return new object[] { "mt-MT", new [] { "mt-MT" }, true };
yield return new object[] { "nb", new [] { "nb" }, true };
yield return new object[] { "nb-NO", new [] { "nb-NO" }, true };
yield return new object[] { "nb", new [] { "nb" } };
yield return new object[] { "nb-NO", new [] { "nb-NO" } };
yield return new object[] { "ne", new [] { "ne" }, true };
yield return new object[] { "ne-NP", new [] { "ne-NP" }, true };
yield return new object[] { "nl", new [] { "nl" } };
Expand Down

0 comments on commit 4574ccb

Please sign in to comment.