Properties of Inner Exception are Disposed?
问题 I am writing a unit test for a WCF web service. I am deliberately sending an invalid request to the server which throws a WebExceptionFault<string> . In the unit test, the Exception that gets caught is an EndpointNotFoundException with the standard WebException in the InnerException property. I want to verify the body of the response matches the string that I think should be there. I am coming accross a problem, however, as the Response property of the WebException (which is a System.Net