Esempio n. 1
0
        public void GlucoseCollectionChangedReplaceTest()
        {
            ModelProvider modelController = new ModelProvider();
            var           glucose         = new GlucoseItem(DateTime.Now, 9.0f);

            modelController.Glucoses[0] = glucose;

            Assert.IsTrue(modelController.GlucoseDataPoints.Contains(glucose.GetDataPoint()));

            CheckGlucosesSorted(modelController);
        }
Esempio n. 2
0
        public void GlucoseCollectionChangedAddTest()
        {
            ModelProvider modelController = new ModelProvider();
            GlucoseItem   value           = new GlucoseItem(DateTime.Now, 9.0f);

            modelController.Glucoses.Add(value);
            DataPoint point = value.GetDataPoint();

            Assert.IsTrue(modelController.GlucoseDataPoints.Contains(point));

            CheckGlucosesSorted(modelController);
        }