public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code() { // Given var fixture = new NuGetSetProxyFixture(); fixture.GivenProcessReturnError(); // When var result = Record.Exception(() => fixture.SetProxy()); // Then Assert.IsCakeException(result, "NuGet: Process returned an error."); }