Fix unit test in according to the name (#1996)

This commit is contained in:
Damir Ainullin
2019-03-10 14:55:51 -07:00
committed by James Newton-King
parent d75d54381e
commit 762ff836bd
@@ -178,7 +178,7 @@ namespace Newtonsoft.Json.Tests.Converters
public void DeserializeStringRegex_NoStartAndEndSlashes_Error() public void DeserializeStringRegex_NoStartAndEndSlashes_Error()
{ {
string json = @"{ string json = @"{
""Regex"": ""\/abc"" ""Regex"": ""abc""
}"; }";
ExceptionAssert.Throws<JsonSerializationException>( ExceptionAssert.Throws<JsonSerializationException>(
@@ -186,7 +186,7 @@ namespace Newtonsoft.Json.Tests.Converters
{ {
Converters = { new RegexConverter() } 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 #pragma warning disable 618