title: How to unit test an ActionResult that returns a ContentResult?
body: <p>I want to unit test the following ASP.NET MVC controller Index action. What do I replace the actual parameter in the assert below (stubbed with ?).</p>
  
  <pre><code>using System.Web.Mvc;
  namespace MvcApplication1.Controllers
  {
      public class StatusController : Controller
      {
          public ActionResult Index()
          {
              return Content("Hello World!");
          }
      }
  }
  
  
  [TestMethod]
  public void TestMethod1()
  {
      // Arrange
      var controller = CreateStatusController();
  
      // Act
      var result = controller.Index();
  
      // Assert
      Assert.AreEqual( "Hello World!.", ? );
  }
  </code></pre>