-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
@@ -84,12 +84,11 @@ namespace Newtonsoft.Json.Tests.Linq
[Test]
public void SetValueWithInvalidIndex()
{
ExceptionAssert.Throws<ArgumentException>(@"Set JConstructor values with invalid key value: ""badvalue"". Argument position index expected.",
() =>
{
JConstructor c = new JConstructor();
c["badvalue"] = new JValue(3);
});
ExceptionAssert.Throws<ArgumentException>(() =>
{
JConstructor c = new JConstructor();
c["badvalue"] = new JValue(3);
}, @"Set JConstructor values with invalid key value: ""badvalue"". Argument position index expected.");
}
[Test]