File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Tests/MessageDeobfuscation Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Globalization ;
3+ using System . Threading ;
24
35namespace 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" ) ;
You can’t perform that action at this time.
0 commit comments