How to get content value in Xunit when result returned in IActionResult type
<p>I have a unit test project using Xunit and the method we are testing returns <code>IActionResult</code>. </p>

<p>I saw some people suggest using "NegotiatedContentResult" to get the content of the <code>IActionResult</code> but that doesn't work in Xunit.</p>

<p>So I wonder how to get the content value of an <code>IActionResult</code> in Xunit?</p>

<p>Test code example is provided below:</p>

<pre><code>public void GetTest()
{
    var getTest = new ResourcesController(mockDb);

    var result = getTest.Get("1");

    //Here I want to convert the result to my model called Resource and
    //compare the attribute Description like below.
    Resource r = ?? //to get the content value of the IActionResult

    Assert.Equal("test", r.Description);
}
</code></pre>

<p>Does anyone know how to do this in XUnit?</p>