Example #1
0
        public void TestEncode()
        {
            var encoded = adapter.ToEncodedString(new DateTime(TestClock.GetTicks()));

            Assert.AreEqual("2003-08-17T21:30:25", encoded);
        }
Example #2
0
        public void TestDecode()
        {
            var decoded = adapter.FromEncodedString("2003-08-17T21:30:25");

            Assert.AreEqual(new DateTime(TestClock.GetTicks()), decoded);
        }