Пример #1
0
        public void Get_Mailing_List_Test()
        {
            SignupController controller   = new SignupController();
            IActionResult    actionResult = controller.Index();
            ViewResult       indexView    = controller.Index() as ViewResult;

            var result = indexView.ViewData.Model;

            Assert.IsType <List <Signup> >(result);
        }
Пример #2
0
        public void Get_ViewResult_Index_Test()
        {
            //Arrange
            SignupController controller = new SignupController();

            //Act
            var result = controller.Index();

            //Assert
            Assert.IsType <ViewResult>(result);
        }