-Refactor ExceptionAssert
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user