private void runTestsForSolution() { var dummy = new object(); var boolValue = false; new RunTestsForSolution("ContinuousTests.VS.Connect.ContinuousTests_RunForSolution", () => { return(!_client.IsRunning && Connect.IsSolutionOpened); }, () => { return(_client.IsRunning); }, (tests) => _client.StartOnDemandRun(tests), _applicationObject, _buildRunner, (runs) => _client.SetLastRun(runs)) .Exec(vsCommandExecOption.vsCommandExecOptionDoDefault, ref dummy, ref dummy, ref boolValue); }