public void TestAverage()
        {
            var dataList = new List<CoreDataSet> {
                new CoreDataSet{Count = 2},
                new CoreDataSet{Count = 4}
            };

            var calculator = new CountAverageCalculator(CoreDataSetFilter(dataList));
            Assert.AreEqual(3, calculator.Average.Value);
            Assert.AreEqual(6, calculator.Average.Count);
        }
        public void TestAverageReturnCoreDataSetHasDefaultValues()
        {
            var dataList = new List<CoreDataSet> {
                new CoreDataSet{Count = 12}
            };

            var average = new CountAverageCalculator(CoreDataSetFilter(dataList)).Average;
            Assert.AreEqual(12, average.Count);
            Assert.AreEqual(ValueData.NullValue, average.Denominator);
            Assert.AreEqual(ValueData.NullValue, average.Denominator2);
            Assert.AreEqual(ValueData.NullValue, average.LowerCI);
            Assert.AreEqual(ValueData.NullValue, average.UpperCI);
        }
 public void TestAverageReturnsNullForEmptyDataList()
 {
     var coreDataSetFilter = CoreDataSetFilter(new List<CoreDataSet> { });
     var calculator = new CountAverageCalculator(coreDataSetFilter);
     Assert.IsNull(calculator.Average);
 }