public void Enumerable_Single() { MaybeSource.Zip(new List <IMaybeSource <int> >() { MaybeSource.Just(1) }, Sum) .Test() .AssertResult(1); }
public void Enumerable_MoveNext_Crash() { MaybeSource.Zip(new FailingEnumerable <IMaybeSource <int> >(false, true, false), Sum) .Test() .AssertFailure(typeof(InvalidOperationException)); }
public void Array_Single() { MaybeSource.Zip(new IMaybeSource <int>[] { MaybeSource.Just(1) }, Sum) .Test() .AssertResult(1); }
public void Enumerable_Empty() { MaybeSource.Zip(new List <IMaybeSource <int> >(), Sum) .Test() .AssertResult(); }
public void Array_Empty() { MaybeSource.Zip(new IMaybeSource <int> [0], Sum) .Test() .AssertResult(); }