Skip to content

Commit

Permalink
Merge pull request #1150 from LucTremblay/defaultThreadCurrentUICulture
Browse files Browse the repository at this point in the history
Set the DefaultThreadCurrentUICulture to a specific culture, asserted error language consistency
  • Loading branch information
GrahamTheCoder authored Nov 9, 2024
2 parents 6e0e0e9 + 98661a5 commit abea701
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 abea701

Please sign in to comment.