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 -

delphi - Take screenshot in webcam using VFrames in Console Application -

c++ - Migration from QScriptEngine to QJSEngine -