Browse Source

Fix unit tests.

pull/1586/head
Siegfried Pammer 7 years ago
parent
commit
6f98ed5415
  1. 4
      ICSharpCode.Decompiler.Tests/RoundtripAssembly.cs
  2. 2
      ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs

4
ICSharpCode.Decompiler.Tests/RoundtripAssembly.cs

@ -71,8 +71,8 @@ namespace ICSharpCode.Decompiler.Tests
{ {
try { try {
RunWithTest("ICSharpCode.Decompiler", "ICSharpCode.Decompiler.dll", "ICSharpCode.Decompiler.Tests.exe"); RunWithTest("ICSharpCode.Decompiler", "ICSharpCode.Decompiler.dll", "ICSharpCode.Decompiler.Tests.exe");
} catch (CompilationFailedException) { } catch (TestRunFailedException) {
Assert.Ignore("C# 7 local functions not yet supported."); Assert.Ignore("CorrectnessTestRunner.UndocumentedExpressions fails on recompilation.");
} }
} }

2
ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs

@ -126,7 +126,7 @@ namespace ICSharpCode.Decompiler.IL
public ILFunction(IMethod method, int codeSize, GenericContext genericContext, ILInstruction body, ILFunctionKind kind = ILFunctionKind.TopLevelFunction) : base(OpCode.ILFunction) public ILFunction(IMethod method, int codeSize, GenericContext genericContext, ILInstruction body, ILFunctionKind kind = ILFunctionKind.TopLevelFunction) : base(OpCode.ILFunction)
{ {
this.Method = method; this.Method = method;
this.Name = method.Name; this.Name = Method?.Name;
this.CodeSize = codeSize; this.CodeSize = codeSize;
this.GenericContext = genericContext; this.GenericContext = genericContext;
this.Body = body; this.Body = body;

Loading…
Cancel
Save