public void NoExceptionCreatesSuccessResult() { Action action = () => { }; var sut = new JourneyStep(action, "test"); var result = sut.Execute(); Assert.IsInstanceOf<SuccessResult>(result); }
public void NotImplementedExceptionCreatesPendingResult() { Action action = () => { throw new NotImplementedException(); }; var sut = new JourneyStep(action, "test"); var result = sut.Execute(); Assert.IsInstanceOf<PendingResult>(result); }
public void ExceptionsCreateFailureResults() { Action action = () => { throw new ApplicationException(); }; var sut = new JourneyStep(action, "test"); var result = sut.Execute(); Assert.IsInstanceOf<FailureResult>(result); }