-Fix error message for missing member
-Fix exception not throwing for bad char after semi-colon
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user