private void TestCsi(string[] args, string expectedOutput, int expectedExitCode, Func <string, string, bool> equalityComparer = null) { ConsoleOutput.AssertEqual( () => { Console.Write(ProcessUtilities.RunAndGetOutput("csi.exe", ConsolidateArguments(args), expectedExitCode, _baseDirectory.Path)); }, expectedOutput, "", equalityComparer); }