protected bool Execute(string commandLine, bool shouldSucceed = true) { bool result = CApp.ExecCommand(commandLine, true); Assert.IsFalse(result ^ shouldSucceed, "Command should " + (shouldSucceed ? "succeed" : "fail") + ": " + commandLine); return(result); }