mercredi 6 juillet 2016

Assert HttpBadRequest in ASP.NET Web API unit test

I'm testing the type of the response from a WebAPI controller. I can find both HttpNotFoundResult as well as HttpOkObjectResult but nothing similar to HttpBadRequestResult. How do I assert this?

Aucun commentaire:

Enregistrer un commentaire