public void Can_serialize_nullable_DateTime()
        {
            JsConfig.IncludeNullValues = true;
            JsConfig.AssumeUtc         = true;

            var date = new DateTime(2013, 1, 1, 0, 0, 1, DateTimeKind.Utc);
            var dto  = new DateModel {
                DateTime = date, NullableDateTime = date
            };

            dto.ToJson().Print();

            Assert.That(dto.ToJson(), Is.EqualTo("{\"DateTime\":\"2013-01-01T00:00:01.0000000Z\",\"NullableDateTime\":\"2013-01-01T00:00:01.0000000Z\"}"));

            JsConfig.Reset();
        }
        public void Can_serialize_nullable_DateTime()
        {
            JsConfig.IncludeNullValues = true;
            JsConfig.AssumeUtc = true;

            var date = new DateTime(2013, 1, 1, 0, 0, 1, DateTimeKind.Utc);
            var dto = new DateModel { DateTime = date, NullableDateTime = date };
            dto.ToJson().Print();

            Assert.That(dto.ToJson(), Is.EqualTo("{\"DateTime\":\"2013-01-01T00:00:01.0000000Z\",\"NullableDateTime\":\"2013-01-01T00:00:01.0000000Z\"}"));

            JsConfig.Reset();
        }