public void TestEncode() { var encoded = adapter.ToEncodedString(new DateTime(TestClock.GetTicks())); Assert.AreEqual("2003-08-17T21:30:25", encoded); }
public void TestDecode() { var decoded = adapter.FromEncodedString("2003-08-17T21:30:25"); Assert.AreEqual(new DateTime(TestClock.GetTicks()), decoded); }