Skip to content

Commit

Permalink
[monotouch-test] Ignore tests that require globalization to work for …
Browse files Browse the repository at this point in the history
…Mac Catalyst.

Globalization doesn't work yet for Mac Catalyst: xamarin#11392
  • Loading branch information
rolfbjarne committed May 18, 2021
1 parent 2272ee9 commit 3f507b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/EmbeddedResources/ResourcesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ public void Embedded ()
Assert.AreEqual ("Welcome", manager.GetString ("String1", new CultureInfo ("en")), "en");
Assert.AreEqual ("G'day", manager.GetString ("String1", new CultureInfo ("en-AU")), "en-AU");
Assert.AreEqual ("Willkommen", manager.GetString ("String1", new CultureInfo ("de")), "de");
#if !(NET && __MACCATALYST__) // https://github.com/xamarin/xamarin-macios/issues/11392
Assert.AreEqual ("Willkommen", manager.GetString ("String1", new CultureInfo ("de-DE")), "de-DE");
#endif
Assert.AreEqual ("Bienvenido", manager.GetString ("String1", new CultureInfo ("es")), "es");
#if !(NET && __MACCATALYST__) // https://github.com/xamarin/xamarin-macios/issues/11392
Assert.AreEqual ("Bienvenido", manager.GetString ("String1", new CultureInfo ("es-AR")), "es-AR");
Assert.AreEqual ("Bienvenido", manager.GetString ("String1", new CultureInfo ("es-ES")), "es-ES");
#endif
}
}
}
3 changes: 3 additions & 0 deletions tests/monotouch-test/Foundation/LocaleTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public void FromLocaleIdentifier ()
Assert.That (NSLocale.FromLocaleIdentifier (ident).Identifier, Is.EqualTo (ident), "FromLocaleIdentifier");
}

#if NET && __MACCATALYST__
[Ignore ("No globalization for Mac Catalyst yet - https://github.com/xamarin/xamarin-macios/issues/11392")]
#endif
[Test]
public void InitRegionInfo ()
{
Expand Down

0 comments on commit 3f507b3

Please sign in to comment.