using System.IO;
using System;
using System.Globalization;
+using System.Threading;
namespace MonoTests.System.Globalization
{
Assert ("InvariantCulture not found in the array from GetCultures()", false);
}
+
+ [Test]
+ [ExpectedException (typeof (NotSupportedException))]
+ public void TrySetNeutralCultureNotInvariant ()
+ {
+ Thread.CurrentThread.CurrentCulture = new CultureInfo ("ar");
+ }
+
+ [Test]
+ // make sure that all CultureInfo holds non-null calendars.
+ public void OptionalCalendars ()
+ {
+ foreach (CultureInfo ci in CultureInfo.GetCultures (
+ CultureTypes.AllCultures))
+ AssertNotNull (String.Format ("{0} {1}",
+ ci.LCID, ci.Name), ci.OptionalCalendars);
+ }
}
}