Fix unit test in according to the name (#1996)
This commit is contained in:
committed by
James Newton-King
parent
d75d54381e
commit
762ff836bd
@@ -178,7 +178,7 @@ namespace Newtonsoft.Json.Tests.Converters
|
||||
public void DeserializeStringRegex_NoStartAndEndSlashes_Error()
|
||||
{
|
||||
string json = @"{
|
||||
""Regex"": ""\/abc""
|
||||
""Regex"": ""abc""
|
||||
}";
|
||||
|
||||
ExceptionAssert.Throws<JsonSerializationException>(
|
||||
@@ -186,7 +186,7 @@ namespace Newtonsoft.Json.Tests.Converters
|
||||
{
|
||||
Converters = { new RegexConverter() }
|
||||
}),
|
||||
"Regex pattern must be enclosed by slashes. Path 'Regex', line 2, position 18.");
|
||||
"Regex pattern must be enclosed by slashes. Path 'Regex', line 2, position 16.");
|
||||
}
|
||||
|
||||
#pragma warning disable 618
|
||||
|
||||
Reference in New Issue
Block a user