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