public void GetControllerDescriptor() { // Arrange ControllerContext controllerContext = new ControllerContext() { Controller = new EmptyController() }; AsyncControllerActionInvokerHelper helper = new AsyncControllerActionInvokerHelper(); // Act ControllerDescriptor cd = helper.PublicGetControllerDescriptor(controllerContext); // Assert Assert.IsInstanceOfType(cd, typeof(ReflectedAsyncControllerDescriptor)); Assert.AreEqual(typeof(EmptyController), cd.ControllerType); }