-Upgraded to Immutable Collections RTM
-Added missing CLSCompliant attributes
This commit is contained in:
@@ -961,6 +961,26 @@ now brown cow?", '"', true);
|
||||
Assert.AreEqual(@"""2000-01-01T01:01:01Z""", json);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DeserializeObject()
|
||||
{
|
||||
string json = @"{
|
||||
'Name': 'Bad Boys',
|
||||
'ReleaseDate': '1995-4-7T00:00:00',
|
||||
'Genres': [
|
||||
'Action',
|
||||
'Comedy'
|
||||
]
|
||||
}";
|
||||
|
||||
Movie m = JsonConvert.DeserializeObject<Movie>(json);
|
||||
|
||||
string name = m.Name;
|
||||
// Bad Boys
|
||||
|
||||
Assert.AreEqual("Bad Boys", m.Name);
|
||||
}
|
||||
|
||||
//[Test]
|
||||
public void StackOverflowTest()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user