public void JsonPropertyRenderer_RenderValue_RendersNullAsNull()
        {
            var renderer = new JsonPropertyRenderer();
            var result   = renderer.RenderValue(null);

            Assert.IsNull(result);
        }
        public void JsonPropertyRenderer_RenderValue_RendersAllValuesToJson()
        {
            var renderer  = new JsonPropertyRenderer();
            var testValue = new TestClass()
            {
                Count    = 10,
                Name     = "Test Name",
                TestDate = new DateTime(2016, 08, 05, 19, 53, 22)
            };

            var result = renderer.RenderValue(testValue).ToString();

            Assert.AreEqual("{\"Name\":\"Test Name\",\"Count\":10,\"TestDate\":\"2016-08-05T19:53:22.0000000\"}", result);
        }