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
Post a Comment