diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
index 3a09d8404..76c263b9b 100644
--- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
+++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
@@ -75,7 +75,9 @@
+
+
diff --git a/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs b/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs
index bc7af305e..9ffe2223e 100644
--- a/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs
+++ b/ICSharpCode.Decompiler.Tests/ILPrettyTestRunner.cs
@@ -136,6 +136,12 @@ namespace ICSharpCode.Decompiler.Tests
Run();
}
+ [Test]
+ public void SequenceOfNestedIfs()
+ {
+ Run();
+ }
+
[Test]
public void FSharpLoops_Debug()
{
diff --git a/ICSharpCode.Decompiler.Tests/IL/SequenceOfNestedIfs.Output.cs b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/SequenceOfNestedIfs.cs
similarity index 51%
rename from ICSharpCode.Decompiler.Tests/IL/SequenceOfNestedIfs.Output.cs
rename to ICSharpCode.Decompiler.Tests/TestCases/ILPretty/SequenceOfNestedIfs.cs
index 754d7dafd..4b404b118 100644
--- a/ICSharpCode.Decompiler.Tests/IL/SequenceOfNestedIfs.Output.cs
+++ b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/SequenceOfNestedIfs.cs
@@ -18,36 +18,26 @@ public class SequenceOfNestedIfs
}
public override void CreateMaterials()
{
- if (!this._clear)
- {
- if (!this.CheckShader())
- {
+ if (!_clear) {
+ if (!CheckShader()) {
return;
}
- this._material = new Material();
+ _material = new Material();
}
- if (!this._material)
- {
- if (!this.CheckShader())
- {
+ if (!_material) {
+ if (!CheckShader()) {
return;
}
- this._material = new Material();
+ _material = new Material();
}
- if (!this._material)
- {
- if (!this.CheckShader())
- {
+ if (!_material) {
+ if (!CheckShader()) {
return;
}
- this._material = new Material();
+ _material = new Material();
}
- if (!this._material)
- {
- if (this.CheckShader())
- {
- this._material = new Material();
- }
+ if (!_material && CheckShader()) {
+ _material = new Material();
}
}
}
diff --git a/ICSharpCode.Decompiler.Tests/IL/SequenceOfNestedIfs.il b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/SequenceOfNestedIfs.il
similarity index 100%
rename from ICSharpCode.Decompiler.Tests/IL/SequenceOfNestedIfs.il
rename to ICSharpCode.Decompiler.Tests/TestCases/ILPretty/SequenceOfNestedIfs.il