public void Deserialize(IXunitSerializationInfo info) { String val = info.GetValue <String>("Value"); HabitWeeklyDateTestData other = JsonSerializer.Deserialize <HabitWeeklyDateTestData>(val); // CaseID = other.CaseID; Dow = other.Dow; RecordDate = other.RecordDate; ExpectedDate = other.ExpectedDate; }
public void getDBSelectionDate(HabitWeeklyDateTestData testData) { DateTime actDate = HabitWeeklyTrace.getDBSelectionDate(testData.Dow, testData.RecordDate); Assert.Equal(testData.ExpectedDate, actDate); }