public void ConvertDateTimeToString()
        {
            DateTime date = new DateTime(2011, 12, 21);

            JsonWriterMock writerMock = new JsonWriterMock();
            writerMock.OnWriteValue<double>(v => Assert.AreEqual(1324425600000000, v));

            DateTimeJsonConverter converter = new DateTimeJsonConverter();
            converter.WriteJson(writerMock, date, null);
        }
        public void WriteDateTime()
        {
            DateTime date = new DateTime(2011, 12, 21);

            JsonWriterMock writerMock = new JsonWriterMock();
            writerMock.OnWriteValue<double>(v => Assert.AreEqual(1324425600.0, v));

            WeaveJsonDateTimeConverter converter = new WeaveJsonDateTimeConverter();
            converter.WriteJson(writerMock, date, null);
        }