private string GetNUnitExePath(IFileOperationsExecuter fileOps) { if (!string.IsNullOrWhiteSpace(this.ExePath)) return fileOps.GetWorkingDirectory(this.Context.ApplicationId, this.Context.DeployableId ?? 0, this.ExePath); var configurer = (NUnitConfigurer)this.GetExtensionConfigurer(); if (string.IsNullOrWhiteSpace(configurer.NUnitConsoleExePath)) throw new InvalidOperationException("The path to NUnit was not specified in either the action or the selected NUnit extension's configuration."); return fileOps.GetWorkingDirectory(this.Context.ApplicationId, this.Context.DeployableId ?? 0, configurer.NUnitConsoleExePath); }