diff --git a/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs b/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs index bfaf57c8a0..dbd064eb48 100644 --- a/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs +++ b/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs @@ -20,7 +20,7 @@ public enum EnumWithFlag [AttributeUsage(AttributeTargets.All)] public class MyAttribute : Attribute { - public MyAttribute(CustomAtributes.EnumWithFlag en) + public MyAttribute(CustomAtributes.EnumWithFlag en) : base() { } } diff --git a/ICSharpCode.Decompiler/Tests/TestRunner.cs b/ICSharpCode.Decompiler/Tests/TestRunner.cs index 543200603d..71815fffac 100644 --- a/ICSharpCode.Decompiler/Tests/TestRunner.cs +++ b/ICSharpCode.Decompiler/Tests/TestRunner.cs @@ -14,9 +14,12 @@ namespace ICSharpCode.Decompiler.Tests { public class TestRunner { - public static void Main() + public static void Main(string[] args) { - TestFile(@"..\..\Tests\DelegateConstruction.cs"); + if (args.Length == 1) + TestFile(args[0]); + else + TestFile(@"..\..\Tests\DelegateConstruction.cs"); Console.ReadKey(); } @@ -27,6 +30,7 @@ static void TestFile(string fileName) 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();