public void SerializeComplexObjectWithEmptyList()
        {
            var complexObjectWithList = new ComplexObjectWithList {Number = 4, SimpleObjects = new List<SimpleObject>() };

            var model = complexObjectWithList.ToKO();

            model.ToJavascriptObject(ObjectName).Simplify().Should().BeInObject(ObjectName,
                                                        "this.number: ko.observable(4);" +
                                                        "this.simpleObjects: ko.observableArray([]);" +
                                                        "this.numbers: ko.observableArray([]);".Simplify());
        }
        public void SerializeComplexObjectWithEmptyList()
        {
            var complexObjectWithList = new ComplexObjectWithList {Number = 4, SimpleObjects = new List<SimpleObject>() };

            var model = complexObjectWithList.ToKO();

            model.ToJavascript().Simplify().Should().Be("{" +
                                                        "number: ko.observable(4), " +
                                                        "simpleObjects: ko.observableArray([]), " +
                                                        "numbers: ko.observableArray([])" +
                                                        "}".Simplify());
        }
        public void SerializeComplexObjectWithList()
        {
            var simpleObject = new SimpleObject { Integer = 3, SomeString = "test" };
            var complexObjectWithList = new ComplexObjectWithList {Number = 4, SimpleObjects = new List<SimpleObject> {simpleObject}, Numbers = new List<int> {1, 2, 3}};

            var model = complexObjectWithList.ToKO();

            model.ToJavascriptObject(ObjectName).Simplify().Should().BeInObject(ObjectName,
                                                        "this.number: ko.observable(4);" +
                                                        "this.simpleObjects: ko.observableArray([{" +
                                                            "integer: ko.observable(3), " +
                                                            "someString: ko.observable('test')" +
                                                        "}]);" +
                                                        "this.numbers: ko.observableArray([1, 2, 3]);".Simplify());
        }