-Fix error message for missing member

-Fix exception not throwing for bad char after semi-colon
This commit is contained in:
JamesNK
2009-01-06 08:03:46 +00:00
parent a6e925b0f3
commit 308a0c516b
4 changed files with 41 additions and 13 deletions
@@ -1024,6 +1024,15 @@ keyword such as type of business.""
Assert.AreEqual(1, c.Height);
}
[Test]
[ExpectedException(typeof(JsonSerializationException), ExpectedMessage = "Could not find member 'Missing' on object of type 'DoubleClass'")]
public void MissingMemeber()
{
string json = @"{""Missing"":1}";
JsonConvert.DeserializeObject<DoubleClass>(json);
}
[Test]
public void SerializeTypeProperty()
{