public void Redirect_To_Action_Create_New_Topic() { //Arrange var testValue = new TopicViewModel() { Id = 2 }; var service = Substitute.For <ITopicService>(); TopicController controller = new TopicController(service); //Act var expected = controller.CreateNewTopic(testValue) as RedirectToActionResult; //Assert Assert.Equal(expected.ActionName, "Index"); Assert.Equal(expected.ControllerName, "Home"); }