public void SetValue() { JObject o = JObject.Parse("{prop1:'12345!'}"); JPropertyDescriptor propertyDescriptor1 = new JPropertyDescriptor("prop1"); propertyDescriptor1.SetValue(o, "54321!"); Assert.AreEqual("54321!", (string)o["prop1"]); }
public void SetValue() { JObject o = JObject.Parse("{prop1:'12345!'}"); JPropertyDescriptor propertyDescriptor1 = new JPropertyDescriptor("prop1", typeof(string)); propertyDescriptor1.SetValue(o, "54321!"); Assert.AreEqual("54321!", (string)o["prop1"]); }
public void SetValue_NullOwner_NoError() { JPropertyDescriptor prop1 = new JPropertyDescriptor("prop1"); prop1.SetValue(null, "value!"); }