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? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -