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