Skip to content

Commit 98661a5

Browse files
committed
Set the DefaultThreadCurrentUICulture to a specific culture, otherwise if the current computer culture is not en-US a lot of asserts will fail, because the language of the error might not be english.
1 parent 1338963 commit 98661a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/TestRunners/ConverterTestBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Microsoft.CodeAnalysis.VisualBasic;
1212
using Xunit;
1313
using Xunit.Sdk;
14+
using System.Globalization;
1415

1516
namespace ICSharpCode.CodeConverter.Tests.TestRunners;
1617

@@ -28,6 +29,7 @@ public class ConverterTestBase
2829

2930
public ConverterTestBase(string rootNamespace = null)
3031
{
32+
CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture;
3133
_rootNamespace = rootNamespace;
3234
var options = new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)
3335
.WithOptionExplicit(true)

0 commit comments

Comments
 (0)