public static ShellUtilities.ProcessOutput InstrumentAssembly(string options, string path) { string[] commandLine = BuildCommandLine(options, path); return(System.Diagnostics.Debugger.IsAttached ? ShellUtilities.shellm(InstrumentationUtilityPath, commandLine) : ShellUtilities.shell(InstrumentationUtilityPath, commandLine)); }
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); }