public DotnetPublishUnitTests() { _task = new DotnetPublishTask(); _task.DotnetExecutable("dotnet"); Tasks.Setup(x => x.RunProgramTask("dotnet")).Returns(RunProgramTask.Object); }