Esempio n. 1
0
        public void group_by_50number_10()
        {
            var measurements = creatMeasurementList(50);

            var groupBy = new GroupBy(10);
            var groups  = groupBy.Group(measurements);

            Assert.AreEqual(5, groups.Count);
        }
Esempio n. 2
0
        public void group_by_number_1()
        {
            var measurements = new List <Measurement>()
            {
                new Measurement()
                {
                    highest = 20,
                    lowest  = 11
                }
            };
            var groupBy = new GroupBy(1);
            var groups  = groupBy.Group(measurements);

            Assert.AreEqual(1, groups.Count);
        }