File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
src/libraries/System.Globalization/tests/CultureInfo Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11<Dependencies >
22 <ProductDependencies >
3- <Dependency Name =" Microsoft.NETCore.Runtime.ICU.Transport" Version =" 8.0.0-alpha.1.22512.11 " >
3+ <Dependency Name =" Microsoft.NETCore.Runtime.ICU.Transport" Version =" 8.0.0-alpha.1.22513.1 " >
44 <Uri >https://github.com/dotnet/icu</Uri >
55 <Sha >a14f6037f69588c9c0af85c3b78cebbe3eb33982</Sha >
66 </Dependency >
Original file line number Diff line number Diff line change 203203 <MicrosoftNETILLinkTasksVersion >7.0.100-1.22514.1</MicrosoftNETILLinkTasksVersion >
204204 <MicrosoftNETILLinkAnalyzerPackageVersion >$(MicrosoftNETILLinkTasksVersion)</MicrosoftNETILLinkAnalyzerPackageVersion >
205205 <!-- ICU -->
206- <MicrosoftNETCoreRuntimeICUTransportVersion >8.0.0-alpha.1.22512.11 </MicrosoftNETCoreRuntimeICUTransportVersion >
206+ <MicrosoftNETCoreRuntimeICUTransportVersion >8.0.0-alpha.1.22513.1 </MicrosoftNETCoreRuntimeICUTransportVersion >
207207 <!-- MsQuic -->
208208 <MicrosoftNativeQuicMsQuicVersion >2.1.1</MicrosoftNativeQuicMsQuicVersion >
209209 <SystemNetMsQuicTransportVersion >7.0.0-alpha.1.22406.1</SystemNetMsQuicTransportVersion >
Original file line number Diff line number Diff line change @@ -822,5 +822,15 @@ public void CultureNotFoundExceptionTest()
822822 e = AssertExtensions . Throws < CultureNotFoundException > ( "culture" , ( ) => new CultureInfo ( 0x1000 ) ) ;
823823 Assert . Equal ( 0x1000 , e . InvalidCultureId ) ;
824824 }
825+
826+ [ Theory ]
827+ [ PlatformSpecific ( TestPlatforms . iOS | TestPlatforms . tvOS | TestPlatforms . MacCatalyst ) ] // for these platforms cultures are taken from icu filters
828+ [ InlineData ( "nb-NO" ) ]
829+ public void ContainsCulture ( string culture )
830+ {
831+ var cultures = CultureInfo . GetCultures ( CultureTypes . AllCultures ) ;
832+ var containsCulture = cultures . Any ( x=> x . Name == culture ) ;
833+ Assert . True ( containsCulture ) ;
834+ }
825835 }
826836}
Original file line number Diff line number Diff line change @@ -233,8 +233,8 @@ public static IEnumerable<object[]> Ctor_String_TestData()
233233 yield return new object [ ] { "ms-MY" , new [ ] { "ms-MY" } } ;
234234 yield return new object [ ] { "mt" , new [ ] { "mt" } , true } ;
235235 yield return new object [ ] { "mt-MT" , new [ ] { "mt-MT" } , true } ;
236- yield return new object [ ] { "nb" , new [ ] { "nb" } , true } ;
237- yield return new object [ ] { "nb-NO" , new [ ] { "nb-NO" } , true } ;
236+ yield return new object [ ] { "nb" , new [ ] { "nb" } } ;
237+ yield return new object [ ] { "nb-NO" , new [ ] { "nb-NO" } } ;
238238 yield return new object [ ] { "ne" , new [ ] { "ne" } , true } ;
239239 yield return new object [ ] { "ne-NP" , new [ ] { "ne-NP" } , true } ;
240240 yield return new object [ ] { "nl" , new [ ] { "nl" } } ;
You can’t perform that action at this time.
0 commit comments