Skip to content

Commit

Permalink
Set the DefaultThreadCurrentUICulture to a specific culture, otherwis…
Browse files Browse the repository at this point in the history
…e 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.
  • Loading branch information
LucTremblay committed Oct 31, 2024
1 parent 1338963 commit 98661a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/TestRunners/ConverterTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Microsoft.CodeAnalysis.VisualBasic;
using Xunit;
using Xunit.Sdk;
using System.Globalization;

namespace ICSharpCode.CodeConverter.Tests.TestRunners;

Expand All @@ -28,6 +29,7 @@ public class ConverterTestBase

public ConverterTestBase(string rootNamespace = null)
{
CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture;
_rootNamespace = rootNamespace;
var options = new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)
.WithOptionExplicit(true)
Expand Down

0 comments on commit 98661a5

Please sign in to comment.