public void analyzeUserRecord(HabitWeeklyRecordTestData testData)
        {
            HabitWeeklyTrace firstWeek  = new HabitWeeklyTrace();
            HabitWeeklyTrace secondWeek = new HabitWeeklyTrace();

            HabitWeeklyTrace.analyzeUserRecord(testData.RecordList, testData.BeginDate, firstWeek, secondWeek);
            Assert.Equal(testData.ExpectedFirstWeekCount, firstWeek.getRecordCount());
            Assert.Equal(testData.ExpectedSecondWeekCount, secondWeek.getRecordCount());
        }
        public void Deserialize(IXunitSerializationInfo info)
        {
            String val = info.GetValue <String>("Value");
            HabitWeeklyRecordTestData other = JsonSerializer.Deserialize <HabitWeeklyRecordTestData>(val);

            // CaseID = other.CaseID;
            BeginDate = other.BeginDate;
            if (other.RecordList.Count > 0)
            {
                RecordList.AddRange(other.RecordList);
            }
            ExpectedFirstWeekCount  = other.ExpectedFirstWeekCount;
            ExpectedSecondWeekCount = other.ExpectedSecondWeekCount;
        }