From 73b5d2c40914c871932fa0ed132c6825bf7ff399 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Mon, 23 Jan 2017 15:10:10 +1300 Subject: [PATCH] -Test --- Src/Newtonsoft.Json.Tests/Utilities/ConvertUtilsTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Newtonsoft.Json.Tests/Utilities/ConvertUtilsTests.cs b/Src/Newtonsoft.Json.Tests/Utilities/ConvertUtilsTests.cs index ea0c77d3..525b63b1 100644 --- a/Src/Newtonsoft.Json.Tests/Utilities/ConvertUtilsTests.cs +++ b/Src/Newtonsoft.Json.Tests/Utilities/ConvertUtilsTests.cs @@ -279,6 +279,7 @@ namespace Newtonsoft.Json.Tests.Utilities { int value; Assert.IsFalse(ConvertUtils.TryHexTextToInt("-100".ToCharArray(), 0, 4, out value)); + Assert.IsFalse(ConvertUtils.TryHexTextToInt("000g".ToCharArray(), 0, 4, out value)); Assert.IsFalse(ConvertUtils.TryHexTextToInt(" ssd".ToCharArray(), 0, 4, out value)); Assert.IsFalse(ConvertUtils.TryHexTextToInt("000:".ToCharArray(), 0, 4, out value)); Assert.IsFalse(ConvertUtils.TryHexTextToInt("000G".ToCharArray(), 0, 4, out value));