Browse Source

Fix #1734: Do not roundtrip ICSharpCode.Decompiler test-case.

pull/1738/head
Siegfried Pammer 6 years ago
parent
commit
4bc7feadbf
  1. 7
      ICSharpCode.Decompiler.Tests/RoundtripAssembly.cs

7
ICSharpCode.Decompiler.Tests/RoundtripAssembly.cs

@ -69,7 +69,7 @@ namespace ICSharpCode.Decompiler.Tests
[Test] [Test]
public void ICSharpCode_Decompiler() public void ICSharpCode_Decompiler()
{ {
RunWithTest("ICSharpCode.Decompiler", "ICSharpCode.Decompiler.dll", "ICSharpCode.Decompiler.Tests.exe"); RunOnly("ICSharpCode.Decompiler", "ICSharpCode.Decompiler.dll");
} }
[Test] [Test]
@ -114,6 +114,11 @@ namespace ICSharpCode.Decompiler.Tests
outputDir => Tester.RunAndCompareOutput(fileToRoundtrip, Path.Combine(inputDir, fileToRoundtrip), Path.Combine(outputDir, fileToRoundtrip))); outputDir => Tester.RunAndCompareOutput(fileToRoundtrip, Path.Combine(inputDir, fileToRoundtrip), Path.Combine(outputDir, fileToRoundtrip)));
} }
void RunOnly(string dir, string fileToRoundtrip)
{
RunInternal(dir, fileToRoundtrip, outputDir => { });
}
void RunInternal(string dir, string fileToRoundtrip, Action<string> testAction, string snkFilePath = null) void RunInternal(string dir, string fileToRoundtrip, Action<string> testAction, string snkFilePath = null)
{ {
if (!Directory.Exists(TestDir)) { if (!Directory.Exists(TestDir)) {

Loading…
Cancel
Save