icsharpcode / CodeConverter

Convert code from C# to VB.NET and vice versa using Roslyn
https://icsharpcode.github.io/CodeConverter/
MIT License
842 stars 219 forks source link

Set the DefaultThreadCurrentUICulture to a specific culture, asserted error language consistency #1150

Closed LucTremblay closed 2 weeks ago

LucTremblay commented 3 weeks ago

Problem

1145

Solution

By setting DefaultThreadCurrentUICulture to CultureInfo.InvariantCulture, in the base class of the unit tests, it ensure that the asserted build error text and actual error text will be in the same language

GrahamTheCoder commented 2 weeks ago

Thanks, I'll try to move it to a module initializer now