Skip to content

Commit

Permalink
fix "NRE" varning
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Svensson committed Apr 14, 2023
1 parent a209f9a commit 936f546
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static WebException ExpectWebException(GenericDelegate del, string messag
WebException e = ExpectExceptionHelper<WebException>(del);
Assert.AreEqual(message, e.Message);

HttpWebResponse response = e.Response as HttpWebResponse;
HttpWebResponse response = (HttpWebResponse)e.Response;
Assert.AreEqual(errorCode, (int)response.StatusCode);
return e;
}
Expand Down

0 comments on commit 936f546

Please sign in to comment.