Skip to content

Commit b22d046

Browse files
authored
Merge c3a606b into 1006c87
2 parents 1006c87 + c3a606b commit b22d046

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Tests/MessageDeobfuscation/Program.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using System;
2+
using System.Globalization;
3+
using System.Threading;
24

35
namespace MessageDeobfuscation {
46
class Class {
@@ -11,15 +13,16 @@ class Class {
1113
public event EventHandler<string> Event;
1214

1315
public class NestedClass {
14-
internal string Method(string param) {
15-
throw new Exception($"Exception");
16-
return "";
17-
}
16+
internal string Method(string param) => throw new Exception($"Exception");
1817
}
1918
}
2019

2120
public class Program {
2221
public static int Main() {
22+
// Setting the culture is required, to get a consistent error output
23+
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
24+
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
25+
2326
Console.WriteLine("START");
2427
try {
2528
new Class.NestedClass().Method("param");

0 commit comments

Comments
 (0)