Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
manuc66 committed Apr 17, 2018
1 parent b51311a commit d84f5af
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions JsonSubTypes.Tests/BaseIsAnInterfaceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,7 @@ public void ConcurrentThreadTest()
[Test]
public void UnknownMappingFails()
{
try
{
JsonConvert.DeserializeObject<IAnimal>("{\"Sound\":\"Scream\"}");
Assert.True(false);
}
catch (JsonSerializationException)
{

}
Assert.Throws<JsonSerializationException>(() => JsonConvert.DeserializeObject<IAnimal>("{\"Sound\":\"Scream\"}"));
}
}
}

0 comments on commit d84f5af

Please sign in to comment.