diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index ed29e0f9..f03da3c4 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -57,40 +57,12 @@ 0 - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.Mdb.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.Pdb.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.Rocks.dll - True - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True - - ..\packages\NUnit3TestAdapter.3.4.1\lib\nunit.engine.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\nunit.engine.api.dll - True - - - ..\packages\NUnit.3.4.1\lib\net45\nunit.framework.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\NUnit3.TestAdapter.dll + + ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll True diff --git a/src/Tests/packages.config b/src/Tests/packages.config index ff7775cc..1294c90a 100644 --- a/src/Tests/packages.config +++ b/src/Tests/packages.config @@ -1,6 +1,6 @@  - - + + \ No newline at end of file diff --git a/src/ZendeskApi_v2/Core.cs b/src/ZendeskApi_v2/Core.cs index 4da64b37..31d4eb23 100644 --- a/src/ZendeskApi_v2/Core.cs +++ b/src/ZendeskApi_v2/Core.cs @@ -564,7 +564,7 @@ private WebException GetWebException(string resource, object body, WebException headersMessage += originalWebException.Response.Headers; } - var wException = new WebException(originalWebException.Message + headersMessage, originalWebException); + var wException = new WebException(originalWebException.Message + headersMessage, originalWebException, originalWebException.Status, originalWebException.Response); wException.Data.Add("jsonException", error); return wException; diff --git a/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj b/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj index 8fa9485d..669e0099 100644 --- a/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj +++ b/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj @@ -62,7 +62,6 @@ - @@ -92,9 +91,6 @@ - - - @@ -108,11 +104,11 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/packages.config b/src/ZendeskApi_v2_Package/packages.config index 9ed9b6b2..726a13af 100644 --- a/src/ZendeskApi_v2_Package/packages.config +++ b/src/ZendeskApi_v2_Package/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file