Beispiel #1
0
        public void TimesCommon_ToIsoExtendedString_TimePartIsOptional()
        {
            string result   = TimesCommon.ToIsoExtendedString(new DateTime(2010, 12, 25));
            string expected = "2010-12-25";

            Assert.Equal(expected, result);
        }
Beispiel #2
0
        public void TimesCommon_ToIsoExtendedString_MightHaveTimePart()
        {
            string result   = TimesCommon.ToIsoExtendedString(new DateTime(2010, 10, 10, 23, 59, 30));
            string expected = "2010-10-10T23:59:30,0000000";

            Assert.Equal(expected, result);
        }