Example #1
0
        public async Task ConfirmEmail_InvalidParameters_RedirectToHomeView(string userId, string token)
        {
            CreateController();

            var actionResult = await _registrationController.ConfirmEmail(userId, token);

            var viewResult = Assert.IsType <RedirectToActionResult>(actionResult);

            Assert.Equal("Home", viewResult.ControllerName);
            Assert.Equal("Index", viewResult.ActionName);
        }