Skip to content

Commit

Permalink
Merge c3a606b into 1006c87
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaring authored Aug 21, 2021
2 parents 1006c87 + c3a606b commit b22d046
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Tests/MessageDeobfuscation/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Globalization;
using System.Threading;

namespace MessageDeobfuscation {
class Class {
Expand All @@ -11,15 +13,16 @@ class Class {
public event EventHandler<string> Event;

public class NestedClass {
internal string Method(string param) {
throw new Exception($"Exception");
return "";
}
internal string Method(string param) => throw new Exception($"Exception");
}
}

public class Program {
public static int Main() {
// Setting the culture is required, to get a consistent error output
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;

Console.WriteLine("START");
try {
new Class.NestedClass().Method("param");
Expand Down

0 comments on commit b22d046

Please sign in to comment.