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()