public void MaximumValueWithTime() { var res = ConvertStringToDateTime.Do(maxDTWithTime, true); bool equal = res.Date == maxDateTime.Date && res.Hour == maxDateTime.Hour && res.Minute == maxDateTime.Minute && res.Second == maxDateTime.Second; Assert.IsTrue(equal); }
public void MediumValue() { var res = ConvertStringToDateTime.Do(medDTWithNone, false); Assert.AreEqual(res, medDateTimeWithNoTime.Date); }
public void MaximumValue() { var res = ConvertStringToDateTime.Do(maxDTWithNone, false); Assert.AreEqual(res, maxDateTime.Date); }
public void MediumValueWithTime() { var res = ConvertStringToDateTime.Do(medDTWithTime, true); Assert.AreEqual(res, medDateTime); }
public void MinimumValueWithTime() { var res = ConvertStringToDateTime.Do(minDTWithTime, true); Assert.AreEqual(res, minDateTime); }