Esempio n. 1
0
 public void AllWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.All(x => x.Length == 0));
 }
Esempio n. 2
0
 public void ToDictionaryNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.ToDictionary(x => x, x => x, StringComparer.CurrentCulture));
 }
Esempio n. 3
0
 public void SimpleFirstOrDefaultWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.FirstOrDefault());
 }
Esempio n. 4
0
 public void ReverseNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Reverse());
 }
Esempio n. 5
0
 public void ToListNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.ToList());
 }
Esempio n. 6
0
 public void SimpleSkipWhileNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.SkipWhile(x => x.Length == 0));
 }
Esempio n. 7
0
 public void SimpleDistinctNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Distinct());
 }
Esempio n. 8
0
 public void ProjectedAverageWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Average(x => x));
 }
Esempio n. 9
0
 public void ProjectedMinWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Min(x => x.Length));
 }
Esempio n. 10
0
 public void SeededProjectionAggregateWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Aggregate("", (x, y) => x + y, x => x));
 }
Esempio n. 11
0
 public void SimpleAverageWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Average());
 }
Esempio n. 12
0
 public void SimpleAggregateWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Aggregate((x, y) => x + y));
 }
Esempio n. 13
0
 public void ComparerSpecifiedContainsWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Contains("x", StringComparer.CurrentCulture));
 }
Esempio n. 14
0
 public void SimpleContainsWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Contains("x"));
 }
Esempio n. 15
0
 public void TakeNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Take(1));
 }
Esempio n. 16
0
 public void GroupByNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.GroupBy(x => x, x => x, (x, y) => x, StringComparer.CurrentCulture));
 }
Esempio n. 17
0
 public void SkipNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Skip(1));
 }
Esempio n. 18
0
 public void ConditionalLongCountWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.LongCount(x => x.Length == 0));
 }
Esempio n. 19
0
 public void SkipWhileWithIndexNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.SkipWhile((x, i) => x.Length == 0));
 }
Esempio n. 20
0
 public void SimpleSelectNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Select(x => x));
 }
Esempio n. 21
0
 public void DistinctWithComparerNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Distinct(StringComparer.CurrentCulture));
 }
Esempio n. 22
0
 public void SelectWithIndexNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Select((x, i) => x));
 }
Esempio n. 23
0
 public void AsEnumerableNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.AsEnumerable());
 }
Esempio n. 24
0
 public void WhereWithIndexNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Where((x, i) => false));
 }
Esempio n. 25
0
 public void ToFutureArrayNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.ToFutureArray());
 }
Esempio n. 26
0
 public void SimpleDefaultIfEmptyNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.DefaultIfEmpty());
 }
Esempio n. 27
0
 public void SimpleLastWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.Last());
 }
Esempio n. 28
0
 public void DefaultIfEmptyWithDefaultNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.DefaultIfEmpty(""));
 }
Esempio n. 29
0
 public void ConditionalFirstOrDefaultWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.FirstOrDefault(x => x.Length == 0));
 }
Esempio n. 30
0
 public void ElementAtOrDefaultWithNullSource()
 {
     Assert.Throws <ArgumentNullException>(() => NullDataProducer.ElementAtOrDefault(0));
 }