public void ReadWhileWithPredicateThrowsArgNullIfReaderNull() { Assert.ThrowsArgumentNull( () => TextReaderExtensions.ReadWhile(null, c => true), "reader" ); }
public void ReadWhileWithPredicateThrowsArgNullIfPredicateNull() { Assert.ThrowsArgumentNull( () => TextReaderExtensions.ReadWhile(new StringReader("Foo"), (Predicate <char>)null), "condition" ); }
public void ReadWhileInclusiveWithPredicateThrowsArgNullIfPredicateNull() { Assert.Throws <ArgumentNullException>("condition", () => TextReaderExtensions.ReadWhile(new StringReader("Foo"), (Predicate <char>)null, inclusive: true)); }
public void ReadWhileInclusiveWithPredicateThrowsArgNullIfReaderNull() { Assert.Throws <ArgumentNullException>("reader", () => TextReaderExtensions.ReadWhile(null, c => true, inclusive: true)); }
public void ReadWhileInclusiveWithPredicateThrowsArgNullIfReaderNull() { ExceptionAssert.ThrowsArgNull(() => TextReaderExtensions.ReadWhile(null, c => true, inclusive: true), "reader"); }