예제 #1
0
        public static void FormatFullDate(int year, int month, int day, int hour, int minute, int second, int millis, string expected)
        {
            var date = new SmppTime(new DateTime(year, month, day, hour, minute, second, millis), true);

            Assert.Equal(expected, date.ToSmppString());
        }
예제 #2
0
        public static void FormatShortDate(int year, int month, int day, int hour, int minute, int second, string expected)
        {
            var date = new SmppTime(new DateTime(year, month, day, hour, minute, second), false);

            Assert.Equal(expected, date.ToSmppString());
        }