Skip to content

Commit 30a3a5e

Browse files
test: fix on test to assert value with invariant culture, so no mismatch between windows and linux
1 parent bcee928 commit 30a3a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CSharpRepl.Tests/ScriptArgumentTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public async Task Evaluate_PrettyPrint_PrintsPrettily()
3535

3636
await services.WarmUpAsync([]);
3737
_ = await services.EvaluateAsync("using System.Globalization;");
38-
_ = await services.EvaluateAsync("CultureInfo.DefaultThreadCurrentCulture = new System.Globalization.CultureInfo(\"en-US\");");
38+
_ = await services.EvaluateAsync("CultureInfo.DefaultThreadCurrentCulture = new System.Globalization.CultureInfo(System.Globalization.CultureInfo.InvariantCulture.Name);");
3939
var printStatement = await services.EvaluateAsync("Print(DateTime.MinValue)");
4040

4141
Assert.IsType<EvaluationResult.Success>(printStatement);
42-
Assert.Equal("[1/1/0001 12:00:00 AM]\n", console.AnsiConsole.Output);
42+
Assert.Equal("[01/01/0001 00:00:00]\n", console.AnsiConsole.Output);
4343
}
4444
}

0 commit comments

Comments
 (0)