public void testProperties() { TestPropertyContainer o = new TestPropertyContainer(); o.StringA = "abcd"; JsonExpectationBlock jsonExpectation = (theMock, json) => { theMock.JsonStartObject(null, 0); theMock.JsonLeaf("StringA", o.StringA, true); theMock.JsonEndObject(json.Length - 1); }; testInBuiltAndNativeJson(o, jsonExpectation, "test Data Member Properties"); }