Example #1
0
        public void TestDataMemberObject()
        {
            DataMemberObject value = "{\"a\":123,\"B\":456,\"c\":789,\"D\":14}".FromJson <DataMemberObject>();

            Assert.IsNotNull(value);
            Assert.AreEqual(123, value.A);
            Assert.AreEqual(456, value.B);
            Assert.AreEqual(789, value.C);
            Assert.AreEqual(14, value.D);
        }
Example #2
0
        public void t19_data_member_object()
        {
            DataMemberObject value = parser.Parse <DataMemberObject>("{\"a\":123,\"B\":456,\"c\":789,\"D\":14}");

            Assert.IsNotNull(value);
            Assert.AreEqual(123, value.A);
            Assert.AreEqual(456, value.B);
            Assert.AreEqual(789, value.C);
            Assert.AreEqual(14, value.D);
        }