Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

ihttpactionresult to object c#

[TestMethod]
public void TestGet()
{
    IHttpActionResult actionResult = controller.Get();
    var contentResult = actionResult as OkNegotiatedContentResult<string>;
    Assert.AreEqual("", contentResult.Content);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ihttpactionresult #object
ADD COMMENT
Topic
Name
4+5 =