Skip to content

Commit

Permalink
Disabled test on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Jul 7, 2024
1 parent 1a53cd0 commit 48ad1a9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions UnitTests/Views/DateFieldTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ public void Typing_With_Selection_Normalize_Format ()
[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");
Expand All @@ -189,11 +195,6 @@ public void Using_All_Culture_StandardizeDateFormat ()
separator = separator.Replace ("\u200f", "");
}

// 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))
{
separator = " ";
}

string format = culture.DateTimeFormat.ShortDatePattern;
var df = new DateField (date);
Expand Down

0 comments on commit 48ad1a9

Please sign in to comment.