-Refactor ExceptionAssert

This commit is contained in:
James Newton-King
2014-09-12 21:33:53 +12:00
parent 4b9ce67ab7
commit dfb2ac17a5
43 changed files with 979 additions and 1482 deletions
@@ -133,14 +133,12 @@ namespace Newtonsoft.Json.Tests.Linq
[Test]
public void JObjectPropertyNameWithNonToken()
{
ExceptionAssert.Throws<ArgumentException>(
"Could not determine JSON object type for type System.String[].",
() =>
{
dynamic d = new JObject();
ExceptionAssert.Throws<ArgumentException>(() =>
{
dynamic d = new JObject();
d.First = new[] { "One", "II", "3" };
});
d.First = new[] { "One", "II", "3" };
}, "Could not determine JSON object type for type System.String[].");
}
[Test]