React to JsonPatch exception message changes. (#6976)

This commit is contained in:
Justin Kotalik 2017-10-20 09:56:27 -07:00 committed by GitHub
parent 1e5e34c9c1
commit ce66e95304
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ namespace Microsoft.AspNetCore.Mvc
}
[Theory]
[InlineData("test", "/CustomerName", null, "James", "The test operation is not supported.")]
[InlineData("test", "/CustomerName", null, "James", "The current value '' at path 'CustomerName' is not equal to the test value 'James'.")]
[InlineData("invalid", "/CustomerName", null, "James", "Invalid JsonPatch operation 'invalid'.")]
[InlineData("", "/CustomerName", null, "James", "Invalid JsonPatch operation ''.")]
public void ApplyTo_InvalidPatchOperations_AddsModelStateError(