public void Should_Throw_If_Process_Was_Not_Started() { // Given var fixture = new ILMergeRunnerFixture(); fixture.GivenProcessCannotStart(); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsType <CakeException>(result); Assert.Equal("ILMerge: Process was not started.", result.Message); }