From b7be55ef81a381bd737f9a7cf36d204d16481121 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Mon, 6 Feb 2017 09:26:56 +1300 Subject: [PATCH] -Build --- .../JsonTextReaderTests/ExceptionHandlingAsyncTests.cs | 2 ++ .../JsonTextReaderTests/ExceptionHandlingTests.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingAsyncTests.cs b/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingAsyncTests.cs index 43a1e9fc..5a6b1123 100644 --- a/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingAsyncTests.cs +++ b/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingAsyncTests.cs @@ -108,6 +108,7 @@ namespace Newtonsoft.Json.Tests.JsonTextReaderTests "After parsing a value an unexpected character was encountered: '. Path '[0]', line 1, position 24."); } +#if !NET20 [Test] public async Task ReadAsDateTimeOffset_MissingCommaAsync() { @@ -121,6 +122,7 @@ namespace Newtonsoft.Json.Tests.JsonTextReaderTests () => reader.ReadAsDateTimeOffsetAsync(), "After parsing a value an unexpected character was encountered: '. Path '[0]', line 1, position 24."); } +#endif [Test] public async Task ReadAsString_MissingCommaAsync() diff --git a/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingTests.cs b/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingTests.cs index 4254e90b..6b30199a 100644 --- a/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingTests.cs +++ b/Src/Newtonsoft.Json.Tests/JsonTextReaderTests/ExceptionHandlingTests.cs @@ -119,6 +119,7 @@ namespace Newtonsoft.Json.Tests.JsonTextReaderTests "After parsing a value an unexpected character was encountered: '. Path '[0]', line 1, position 24."); } +#if !NET20 [Test] public void ReadAsDateTimeOffset_MissingComma() { @@ -132,6 +133,7 @@ namespace Newtonsoft.Json.Tests.JsonTextReaderTests () => reader.ReadAsDateTimeOffset(), "After parsing a value an unexpected character was encountered: '. Path '[0]', line 1, position 24."); } +#endif [Test] public void ReadAsString_MissingComma()