public void DeserializesEmptyObjectCorrectly()
        {
            var json = "{}";
            var obj = new DataContractPublicGetterSetters();

            var result = (DataContractPublicGetterSetters)SimpleJson.DeserializeObject(json, typeof(DataContractPublicGetterSetters), SimpleJson.PocoJsonSerializerStrategy);

            Assert.IsNotNull(result);
            Assert.AreEqual(obj.DataMemberWithoutName, result.DataMemberWithoutName);
            Assert.AreEqual(obj.DatMemberWithName, result.DatMemberWithName);
            Assert.AreEqual(obj.IgnoreDataMember, result.IgnoreDataMember);
            Assert.AreEqual(obj.NoDataMember, result.NoDataMember);
        }
        public void DeserializesCorrectly()
        {
            var json = "{\"DataMemberWithoutName\":\"1\",\"name\":\"2\"}";
            var obj  = new DataContractPublicGetterSetters();

            var result = (DataContractPublicGetterSetters)SimpleJson.DeserializeObject(json, typeof(DataContractPublicGetterSetters), SimpleJson.DataContractJsonSerializerStrategy);

            Assert.IsNotNull(result);
            Assert.AreEqual("1", result.DataMemberWithoutName);
            Assert.AreEqual("2", result.DatMemberWithName);
            Assert.AreEqual(obj.IgnoreDataMember, result.IgnoreDataMember);
            Assert.AreEqual(obj.NoDataMember, result.NoDataMember);
        }
        public void DeserializesCorrectly()
        {
            var json = "{\"DataMemberWithoutName\":\"1\",\"name\":\"2\"}";
            var obj = new DataContractPublicGetterSetters();

            var result = (DataContractPublicGetterSetters)SimpleJson.DeserializeObject(json, typeof(DataContractPublicGetterSetters), SimpleJson.DataContractJsonSerializerStrategy);

            Assert.IsNotNull(result);
            Assert.AreEqual("1", result.DataMemberWithoutName);
            Assert.AreEqual("2", result.DatMemberWithName);
            Assert.AreEqual(obj.IgnoreDataMember, result.IgnoreDataMember);
            Assert.AreEqual(obj.NoDataMember, result.NoDataMember);
        }
 public PublicGetterSettersSerializeTests()
 {
     _dataContractPublicGetterSetters = new DataContractPublicGetterSetters();
 }
 public PublicGetterSettersSerializeTests()
 {
     _dataContractPublicGetterSetters = new DataContractPublicGetterSetters();
 }