title: How can you unit test ASP.NET Web API routing?
body: <p>I'm trying to write some unit tests to ensure that requests made to my Web API are routed to the expected API controller action with the expected arguments.</p>
  
  <p>I've tried to create a test using the <code>HttpServer</code> class, but I get 500 responses from the server and no information to debug the problem.</p>
  
  <p>Is there a way to create a unit tests for the routing of an ASP.NET Web API site?</p>
  
  <p>Ideally, I'd like to create a request using <code>HttpClient</code> and have the server handle the request and pass it through the expected routing process.</p>