Procházet zdrojové kódy

Merge branch 'v2_release' into v2_develop

Tig před 11 měsíci
rodič
revize
f2e531045a
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7 0
      UnitTests/Views/DateFieldTests.cs

+ 7 - 0
UnitTests/Views/DateFieldTests.cs

@@ -175,6 +175,12 @@ public class DateFieldTests
     [Fact]
     public void Using_All_Culture_StandardizeDateFormat ()
     {
+        // BUGBUG: This is a workaround for the issue with the date separator in macOS. See https://github.com/gui-cs/Terminal.Gui/issues/3592
+        if (RuntimeInformation.IsOSPlatform (OSPlatform.OSX))
+        {
+            return;
+        }
+
         CultureInfo cultureBackup = CultureInfo.CurrentCulture;
 
         DateTime date = DateTime.Parse ("1/1/1971");
@@ -193,6 +199,7 @@ public class DateFieldTests
                 separator = " ";
             }
 
+
             string format = culture.DateTimeFormat.ShortDatePattern;
             var df = new DateField (date);