Browse Source

Fix unit tests.

pull/1586/head
Siegfried Pammer 6 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 @@ -71,8 +71,8 @@ namespace ICSharpCode.Decompiler.Tests
{
try {
RunWithTest("ICSharpCode.Decompiler", "ICSharpCode.Decompiler.dll", "ICSharpCode.Decompiler.Tests.exe");
} catch (CompilationFailedException) {
Assert.Ignore("C# 7 local functions not yet supported.");
} catch (TestRunFailedException) {
Assert.Ignore("CorrectnessTestRunner.UndocumentedExpressions fails on recompilation.");
}
}

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

@ -126,7 +126,7 @@ namespace ICSharpCode.Decompiler.IL @@ -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)
{
this.Method = method;
this.Name = method.Name;
this.Name = Method?.Name;
this.CodeSize = codeSize;
this.GenericContext = genericContext;
this.Body = body;

Loading…
Cancel
Save