Пример #1
0
 public void Enumerable_Single()
 {
     MaybeSource.Zip(new List <IMaybeSource <int> >()
     {
         MaybeSource.Just(1)
     }, Sum)
     .Test()
     .AssertResult(1);
 }
Пример #2
0
 public void Enumerable_MoveNext_Crash()
 {
     MaybeSource.Zip(new FailingEnumerable <IMaybeSource <int> >(false, true, false), Sum)
     .Test()
     .AssertFailure(typeof(InvalidOperationException));
 }
Пример #3
0
 public void Array_Single()
 {
     MaybeSource.Zip(new IMaybeSource <int>[] { MaybeSource.Just(1) }, Sum)
     .Test()
     .AssertResult(1);
 }
Пример #4
0
 public void Enumerable_Empty()
 {
     MaybeSource.Zip(new List <IMaybeSource <int> >(), Sum)
     .Test()
     .AssertResult();
 }
Пример #5
0
 public void Array_Empty()
 {
     MaybeSource.Zip(new IMaybeSource <int> [0], Sum)
     .Test()
     .AssertResult();
 }