From 9e1e367e0414054f2e4766d50935e35a28b116d9 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 17 Feb 2019 13:43:10 +0100 Subject: [PATCH] Add basic for loop PDB tests. --- .../ICSharpCode.Decompiler.Tests.csproj | 1 + .../PdbGenerationTestRunner.cs | 9 ++- .../TestCases/PdbGen/ForLoopTests.xml | 73 +++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 ICSharpCode.Decompiler.Tests/TestCases/PdbGen/ForLoopTests.xml diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj index fdfb156d8..9531b9bf5 100644 --- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj +++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj @@ -203,6 +203,7 @@ + diff --git a/ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs b/ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs index 0d5ad1884..c13ee99a0 100644 --- a/ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs +++ b/ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs @@ -30,7 +30,14 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - [Ignore("differences in il ranges")] + [Ignore("Missing nested local scopes for loops, differences in IL ranges")] + public void ForLoopTests() + { + TestGeneratePdb(); + } + + [Test] + [Ignore("Differences in IL ranges")] public void LambdaCapturing() { TestGeneratePdb(); diff --git a/ICSharpCode.Decompiler.Tests/TestCases/PdbGen/ForLoopTests.xml b/ICSharpCode.Decompiler.Tests/TestCases/PdbGen/ForLoopTests.xml new file mode 100644 index 000000000..1d41df003 --- /dev/null +++ b/ICSharpCode.Decompiler.Tests/TestCases/PdbGen/ForLoopTests.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file