Exemplo n.º 1
0
 public void AverageProjectionDenseDataWithNulls()
 {
     Aggregate <Wrap <int?>, double?>(
         x => Enumerable.Average(x, y => y.Value),
         x => DataProducerExt.Average(x, y => y.Value),
         new Wrap <int?>(5), new Wrap <int?>(null), new Wrap <int?>(1));
 }
Exemplo n.º 2
0
 public void AverageProjectionSparseData()
 {
     Aggregate <Wrap <int>, double>(
         x => Enumerable.Average(x, y => y.Value),
         x => DataProducerExt.Average(x, y => y.Value),
         new Wrap <int>(5), null, new Wrap <int>(1));
 }
Exemplo n.º 3
0
 public void SumProjectionSparseNullableData()
 {
     Aggregate <Wrap <int?>, int?>(
         x => Enumerable.Sum(x, y => y.Value),
         x => DataProducerExt.Sum(x, y => y.Value),
         new Wrap <int?>(5), null, new Wrap <int?>(1));
 }
Exemplo n.º 4
0
 public void SumProjectionDenseDataWithNulls()
 {
     Aggregate <Wrap <int?>, int?>(
         x => Enumerable.Sum(x, y => y.Value),
         x => DataProducerExt.Sum(x, y => y.Value),
         new Wrap <int?>(5), new Wrap <int?>(null), new Wrap <int?>(1));
 }
Exemplo n.º 5
0
 public void SumProjectionDenseData()
 {
     Aggregate <Wrap <int>, int>(
         x => Enumerable.Sum(x, y => y.Value),
         x => DataProducerExt.Sum(x, y => y.Value),
         new Wrap <int>(5), new Wrap <int>(2), new Wrap <int>(1));
 }
Exemplo n.º 6
0
 public void MinNullableInt32NoProjectionStartsNull()
 {
     // test against typed Enumerable form
     Aggregate <int?, int?>(x => Enumerable.Min(x),
                            x => DataProducerExt.Min(x),
                            null, 1, 2);
 }
Exemplo n.º 7
0
 public void AverageProjectionEmpty()
 {
     Aggregate <Wrap <int>, double>(
         x => Enumerable.Average(x, y => y.Value),
         x => DataProducerExt.Average(x, y => y.Value));
 }
Exemplo n.º 8
0
 public void SumProjectionEmpty()
 {
     Aggregate <Wrap <int>, int>(
         x => Enumerable.Sum(x, y => y.Value),
         x => DataProducerExt.Sum(x, y => y.Value));
 }
Exemplo n.º 9
0
 public void MaxNullableInt32NoProjectionStartsNull()
 {
     Aggregate <int?, int?>(x => Enumerable.Max(x),
                            x => DataProducerExt.Max(x),
                            null, 1, 2);
 }