public void Should_Throw_If_Process_Was_Not_Started() { // Given var fixture = new DotNetCoreExecutorFixture(); fixture.AssemblyPath = "./bin/Debug/app.dll"; fixture.Arguments = "--args"; fixture.Settings = new DotNetCoreExecuteSettings(); fixture.GivenProcessCannotStart(); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsCakeException(result, "DotNetCore: Process was not started."); }