public void AddPersonToGroup_correctValues() { PersonController controller = new PersonController(); var actionResult = controller.AddPersonToGroup(personId, groupId) as RedirectToActionResult; Assert.NotNull(actionResult); Assert.Equal("ManageGroup", actionResult.ActionName); // https://stackoverflow.com/questions/2440203/unit-testing-a-controller-in-asp-net-mvc-2-with-redirecttoaction }