title: Why does RedirectToActionResult ControllerName return NULL?
body: <p>I have a Xunit test class for a MVC:</p>
  
  <pre><code>using System;
  using Xunit;
  using Home.Controllers;
  using Microsoft.AspNetCore.Mvc;
  using Tester.Models;
  using Xunit.Abstractions;
  
  namespace ClassLibrary1
  {
  
      public class Class1
      {
  
          [Fact]
          public void CreateinController()
          {
              HomeController c = new HomeController();
  
              var result = c.Create();
  
              //result moet een view zijn
              var viewResult = Assert.IsType&lt;ViewResult&gt;(result);
  
              //Juiste redirection
  
              var result2 = c.Create(null);
  
              var redirectToActionResult =
              Assert.IsType&lt;RedirectToActionResult&gt;(result2);
  
              Assert.Equal("Home", redirectToActionResult.ControllerName);
              Assert.Equal("BoekingVerwerken", redirectToActionResult.ActionName);
  
  
          }
  
  
      }
  }
  </code></pre>
  
  <p>Whenever I run the test the ActionName passes the test because it actually contains the value. But the ControllerName seems to be NULL valued, why is this?
  When the Action has a value why wouldn't the Controller have one? Should I put the controller in the RTA? </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Mvc;
  using Tester.Models;
  
  namespace Home.Controllers
  {
      public class HomeController : Controller
      {
  
          [HttpGet]
          public IActionResult Create()
          {
              return View();
          }
  
          [HttpPost]
          public IActionResult Create(HotelBoeking boeking)
          {
              return RedirectToAction("BoekingVerwerken", boeking);
          }
  
          [HttpGet]
          public IActionResult BoekingVerwerken(HotelBoeking boeking)
          {
              return View(boeking);
          }
  
      }
  }
  </code></pre>