예제 #1
0
        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);
        }
예제 #2
0
        public void MediumValue()
        {
            var res = ConvertStringToDateTime.Do(medDTWithNone, false);

            Assert.AreEqual(res, medDateTimeWithNoTime.Date);
        }
예제 #3
0
        public void MaximumValue()
        {
            var res = ConvertStringToDateTime.Do(maxDTWithNone, false);

            Assert.AreEqual(res, maxDateTime.Date);
        }
예제 #4
0
        public void MediumValueWithTime()
        {
            var res = ConvertStringToDateTime.Do(medDTWithTime, true);

            Assert.AreEqual(res, medDateTime);
        }
예제 #5
0
        public void MinimumValueWithTime()
        {
            var res = ConvertStringToDateTime.Do(minDTWithTime, true);

            Assert.AreEqual(res, minDateTime);
        }