-Fix writing raw JValue tokens

This commit is contained in:
JamesNK
2009-01-24 01:06:35 +00:00
parent 803c381c72
commit 50cca1ec0b
3 changed files with 17 additions and 2 deletions
@@ -359,5 +359,20 @@ Parameter name: arrayIndex")]
person = person;
}
[Test]
public void RawChildValues()
{
JObject o = new JObject();
o["val1"] = JValue.CreateRaw("1");
o["val2"] = JValue.CreateRaw("1");
string json = o.ToString();
Assert.AreEqual(@"{
""val1"": 1,
""val2"": 1
}", json);
}
}
}