protected virtual void CheckInstrumentationOutput(ShellUtilities.ProcessOutput output) { if (output.ExitCode == 0) { return; } Assert.Fail(output.ToString()); }
void VerifyAssembly() { ShellUtilities.ProcessOutput output = ShellUtilities.shell("peverify.exe", "/nologo", _assemblyPath); string stdout = output.ToString(); if (output.ExitCode != 0) { Console.WriteLine("Db4oTool.Tests.Core.VerifyAssemblyTest _assemblyPath: " + _assemblyPath); Console.WriteLine("Db4oTool.Tests.Core.VerifyAssemblyTest stdout: " + stdout); Console.WriteLine("Db4oTool.Tests.Core.VerifyAssemblyTest output.ExitCode: " + output.ExitCode); } if (stdout.Contains("1.1.4322.573")) { return; // ignore older peverify version errors } if (output.ExitCode == 0 && !stdout.ToUpper().Contains("WARNING")) { return; } Assert.Fail(stdout); }