public void Array_Basic_Params_DelayError() { MaybeSource.Concat(true, MaybeSource.Just(1), MaybeSource.Just(2) ) .Test() .AssertResult(1, 2); }
public void Array_Basic_Params() { MaybeSource.Concat( MaybeSource.Just(1), MaybeSource.Just(2) ) .Test() .AssertResult(1, 2); }
public void Enumerable_Basic_Params_DelayError() { MaybeSource.Concat( new List <IMaybeSource <int> >() { MaybeSource.Just(1), MaybeSource.Just(2) }, true ) .Test() .AssertResult(1, 2); }
public void Enumerable_MoveNext_Crash() { MaybeSource.Concat(new FailingEnumerable <IMaybeSource <int> >(false, true, false)) .Test() .AssertFailure(typeof(InvalidOperationException)); }