From a2fc99458b78c2f619dbc868167fc0ec9c3cf1fa Mon Sep 17 00:00:00 2001 From: Jonathan CONTE <41507018+joconte@users.noreply.github.com> Date: Mon, 1 Jul 2019 23:08:49 +0200 Subject: [PATCH] [Tests][MapKit/PinAnnotationView] Changed assertion of PinTintColor property to work on other language than English (#6463) Ensure that assertion is done to a know value to reduce the change of the test failing in case of a device being configured in a diff locale. Fixes issue $4114 --- tests/monotouch-test/MapKit/PinAnnotationViewTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs b/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs index b6b0da3a74..ea18a54f8e 100644 --- a/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs +++ b/tests/monotouch-test/MapKit/PinAnnotationViewTest.cs @@ -80,7 +80,7 @@ namespace MonoTouchFixtures.MapKit { Assert.That (av.PinColor, Is.EqualTo (MKPinAnnotationColor.Red), "PinColor"); #if MONOMAC if (TestRuntime.CheckSystemVersion (PlatformName.MacOSX, 10, 12)) { - Assert.That (av.PinTintColor.ToString (), Is.EqualTo ("Developer/systemRedColor"), "PinTintColor"); + Assert.That (av.PinTintColor, Is.EqualTo (NSColor.SystemRedColor), "PinTintColor"); } else { Assert.Null (av.PinTintColor, "PinTintColor"); // differs from the other init call }