|
|
|
@ -14,8 +14,11 @@ namespace ICSharpCode.Decompiler.Tests
@@ -14,8 +14,11 @@ namespace ICSharpCode.Decompiler.Tests
|
|
|
|
|
{ |
|
|
|
|
public class TestRunner |
|
|
|
|
{ |
|
|
|
|
public static void Main() |
|
|
|
|
public static void Main(string[] args) |
|
|
|
|
{ |
|
|
|
|
if (args.Length == 1) |
|
|
|
|
TestFile(args[0]); |
|
|
|
|
else |
|
|
|
|
TestFile(@"..\..\Tests\DelegateConstruction.cs"); |
|
|
|
|
|
|
|
|
|
Console.ReadKey(); |
|
|
|
@ -27,6 +30,7 @@ namespace ICSharpCode.Decompiler.Tests
@@ -27,6 +30,7 @@ namespace ICSharpCode.Decompiler.Tests
|
|
|
|
|
AssemblyDefinition assembly = Compile(code); |
|
|
|
|
AstBuilder decompiler = new AstBuilder(new DecompilerContext()); |
|
|
|
|
decompiler.AddAssembly(assembly); |
|
|
|
|
decompiler.Transform(new Helpers.RemoveCompilerAttribute()); |
|
|
|
|
StringWriter output = new StringWriter(); |
|
|
|
|
decompiler.GenerateCode(new PlainTextOutput(output)); |
|
|
|
|
StringWriter diff = new StringWriter(); |
|
|
|
|