-Formatting

-Build
This commit is contained in:
James Newton-King
2015-12-04 23:54:38 +13:00
parent c96779dc10
commit eb0cbd6a75
334 changed files with 3952 additions and 514 deletions
@@ -161,26 +161,11 @@ namespace Newtonsoft.Json.Tests.Utilities
[Test]
public void HexParseError()
{
ExceptionAssert.Throws<FormatException>(() =>
{
ConvertUtils.HexTextToInt("-100".ToCharArray(), 0, 4);
}, "Invalid hex character: -");
ExceptionAssert.Throws<FormatException>(() =>
{
ConvertUtils.HexTextToInt("000g".ToCharArray(), 0, 4);
}, "Invalid hex character: g");
ExceptionAssert.Throws<FormatException>(() =>
{
ConvertUtils.HexTextToInt(" ssd".ToCharArray(), 0, 4);
}, "Invalid hex character: ");
ExceptionAssert.Throws<FormatException>(() =>
{
ConvertUtils.HexTextToInt("000:".ToCharArray(), 0, 4);
}, "Invalid hex character: :");
ExceptionAssert.Throws<FormatException>(() =>
{
ConvertUtils.HexTextToInt("000G".ToCharArray(), 0, 4);
}, "Invalid hex character: G");
ExceptionAssert.Throws<FormatException>(() => { ConvertUtils.HexTextToInt("-100".ToCharArray(), 0, 4); }, "Invalid hex character: -");
ExceptionAssert.Throws<FormatException>(() => { ConvertUtils.HexTextToInt("000g".ToCharArray(), 0, 4); }, "Invalid hex character: g");
ExceptionAssert.Throws<FormatException>(() => { ConvertUtils.HexTextToInt(" ssd".ToCharArray(), 0, 4); }, "Invalid hex character: ");
ExceptionAssert.Throws<FormatException>(() => { ConvertUtils.HexTextToInt("000:".ToCharArray(), 0, 4); }, "Invalid hex character: :");
ExceptionAssert.Throws<FormatException>(() => { ConvertUtils.HexTextToInt("000G".ToCharArray(), 0, 4); }, "Invalid hex character: G");
}
private void HexParseSame(string text)