iSynaptic/iSynaptic.Commons — Issue #2: Outcome.Inform on failed outcome with no observations returns a success outcome
Author: jewer
Created: 2012-03-02 21:30:42+00:00
State: open

Here's my test case:

var outcome = Outcome.Failure;
Assert.False(outcome.WasSuccessful);

var newOutcome = outcome.Inform(x => new OtherShapeForObservations(x));
Assert.False(newOutcome.WasSuccessful); //this assertion will fail

In which case, the value of newOutcome.WasSuccessful will be true. When "outcome" contains an observation, then Inform behaves as expected and the initial value of WasSuccessful is preserved.