Esempio n. 1
0
        public async Task ConfirmEditPost_ViewName_Ok()
        {
            _controller.SetupUser(1);
            var result = await _controller.ConfirmEditPost(new UpdatePostViewModel());

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

            Assert.True(viewResult.ActionName == "Index");
        }