public void AllReturningFalse()
        {
            DataProducer <string> subject = new DataProducer <string>();
            IFuture <bool>        result  = subject.All(x => x.Length < 5);

            subject.ProduceAndEnd("zero", "one", "two", "three", "four");
            Assert.IsFalse(result.Value);
        }
        public void AllNoData()
        {
            DataProducer <string> subject = new DataProducer <string>();
            IFuture <bool>        result  = subject.All(x => x.Length < 5);

            subject.End();
            Assert.IsTrue(result.Value);
        }
 public void AllReturningFalse()
 {
     DataProducer<string> subject = new DataProducer<string>();
     IFuture<bool> result = subject.All(x => x.Length < 5);
     subject.ProduceAndEnd("zero", "one", "two", "three", "four");
     Assert.IsFalse(result.Value);
 }
 public void AllNoData()
 {
     DataProducer<string> subject = new DataProducer<string>();
     IFuture<bool> result = subject.All(x => x.Length < 5);
     subject.End();
     Assert.IsTrue(result.Value);
 }