public void Compact_NestedObject_AsRawJson()
        {
            var serializer = new KnockoutModelSerializer();
            serializer.Verbose = false;
            var actual = serializer.Serialize(new NestedObjectTarget {
                Nested = "{ \"Nested\": null }"
            });

            Console.WriteLine(actual);
            Assert.That(actual, Is.EqualTo("(function() { var o=ko.observable;var a=ko.observableArray;var v=[];return {\"Nested\":{ \"Nested\": null }}})()"));
        }
        public void Verbose_NestedObject_AsRawJson()
        {
            var serializer = new KnockoutModelSerializer();
            serializer.Verbose = true;
            var actual = serializer.Serialize(new NestedObjectTarget {
                Nested = "{ \"Nested\":null }"
            });

            Console.WriteLine(actual);
            Assert.That(actual, Is.EqualTo(@"{
            ""Nested"":{ ""Nested"":null }
            }"));
        }