Beispiel #1
0
 public void ReadWhileWithPredicateThrowsArgNullIfReaderNull()
 {
     Assert.ThrowsArgumentNull(
         () => TextReaderExtensions.ReadWhile(null, c => true),
         "reader"
         );
 }
Beispiel #2
0
 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));
 }
Beispiel #5
0
 public void ReadWhileInclusiveWithPredicateThrowsArgNullIfReaderNull()
 {
     ExceptionAssert.ThrowsArgNull(() => TextReaderExtensions.ReadWhile(null, c => true, inclusive: true), "reader");
 }