public void ToLookupNullKeySelector()
 {
     NonNullDataProducer.ToLookup(null, x => x, StringComparer.CurrentCulture);
 }
Example #2
0
 public void ToDictionaryNullElementSelector()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.ToDictionary(x => x, (Func <string, string>)null, StringComparer.CurrentCulture));
 }
Example #3
0
 public void ConditionalLastWithNullCondition()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Last(null));
 }
Example #4
0
 public void DistinctWithComparerNullComparer()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Distinct(null));
 }
Example #5
0
 public void ThenByNullComparer()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.OrderBy(x => x).ThenBy(x => x, null));
 }
Example #6
0
 public void SimpleWhereNullProjection()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Where((Func <string, bool>)null));
 }
Example #7
0
 public void SimpleTakeWhileNullCondition()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.TakeWhile((Func <string, bool>)null));
 }
Example #8
0
 public void ElementAtOrDefaultWithNegativeIndex()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => NonNullDataProducer.ElementAtOrDefault(-1));
 }
Example #9
0
 public void AllWithNullCondition()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.All(null));
 }
 public void ToDictionaryNullComparer()
 {
     NonNullDataProducer.ToDictionary(x => x, x => x, null);
 }
 public void ConditionalLastWithNullCondition()
 {
     NonNullDataProducer.Last(null);
 }
 public void ToDictionaryNullElementSelector()
 {
     NonNullDataProducer.ToDictionary(x => x, (Func <string, string>)null, StringComparer.CurrentCulture);
 }
 public void ToDictionaryNullKeySelector()
 {
     NonNullDataProducer.ToDictionary(null, x => x, StringComparer.CurrentCulture);
 }
 public void ToLookupNullComparer()
 {
     NonNullDataProducer.ToLookup(x => x, x => x, null);
 }
Example #15
0
 public void GroupByNullComparer()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.GroupBy(x => x, x => x, (x, y) => x, null));
 }
Example #16
0
 public void ComparerSpecifiedContainsWithNullCondition()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Contains("x", null));
 }
Example #17
0
 public void SelectWithIndexNullProjection()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Select((Func <string, int, string>)null));
 }
Example #18
0
 public void SimpleAggregateWithNullAggregation()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Aggregate(null));
 }
Example #19
0
 public void WhereWithIndexNullProjection()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Where((Func <string, int, bool>)null));
 }
Example #20
0
 public void SeededProjectionAggregateWithNullAggregation()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Aggregate("", null, x => x));
 }
Example #21
0
 public void SkipWhileWithIndexNullCondition()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.SkipWhile((Func <string, int, bool>)null));
 }
Example #22
0
 public void SeededProjectionAggregateWithNullProjection()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Aggregate <string, string, string>("", (x, y) => x + y, null));
 }
Example #23
0
 public void ThenByNullSelector()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.OrderBy(x => x).ThenBy(null, StringComparer.CurrentCulture));
 }
Example #24
0
 public void ProjectedMinWithNullProjection()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.Min <string, string>(null));
 }
Example #25
0
 public void ToDictionaryNullKeySelector()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.ToDictionary(null, x => x, StringComparer.CurrentCulture));
 }
Example #26
0
 public void GroupByNullKeySelector()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.GroupBy(null, x => x, (x, y) => x, StringComparer.CurrentCulture));
 }
Example #27
0
 public void ToDictionaryNullComparer()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.ToDictionary(x => x, x => x, null));
 }
Example #28
0
 public void GroupByNullResultSelector()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.GroupBy <string, string, string, string>(x => x, x => x, null, StringComparer.CurrentCulture));
 }
Example #29
0
 public void ConditionalFirstOrDefaultWithNullCondition()
 {
     Assert.Throws <ArgumentNullException>(() => NonNullDataProducer.FirstOrDefault(null));
 }
 public void ThenByNullComparer()
 {
     NonNullDataProducer.OrderBy(x => x).ThenBy(x => x, null);
 }