Assert HttpBadRequest in ASP.NET Web API unit test -


i'm testing type of response webapi controller. can find both httpnotfoundresult httpokobjectresult nothing similar httpbadrequestresult. how assert this?

it called badrequestresult.

it seems they're renaming result types if github page. httpnotfoundresult notfoundresult example.

update: confirmed they're renaming return types excluding http in return types. see guide reference: https://docs.asp.net/en/latest/migration/rc1-to-rtm.html


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -