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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -