public void CorrectNumberOfBlocksRead()
        {
            var sleepReg = new SleepDataRegistry(TestPath);
            var actual   = sleepReg.ReadSleepData();

            Assert.Single(actual);
        }
        public void ReadFromSleepFile()
        {
            var sleepReg = new SleepDataRegistry(TestPath);
            var actual   = sleepReg.ReadSleepData();

            Assert.Equal(Expected[0].Start, actual[0].Start);
            Assert.Equal(Expected[0].End, actual[0].End);
        }
        public void WriteToSleepFile(int[] s, int[] e)
        {
            File.Delete(TestPath);
            var sleepReg = new SleepDataRegistry(TestPath);
            var start    = new DateTime(s[0], s[1], s[2], s[3], s[4], s[5]);
            var end      = new DateTime(e[0], e[1], e[2], e[3], e[4], e[5]);
            var block    = new SleepBlock(start, end);

            bool ret = sleepReg.WriteSleepData(new List <SleepBlock> {
                block
            });

            Assert.True(ret);

            var read = sleepReg.ReadSleepData();

            Assert.Equal(start, read[0].Start);
            Assert.Equal(end, read[0].End);
        }