Esempio n. 1
0
        public void Create_ShouldReturn_ArticleModel()
        {
            var target     = controller.Create();
            var viewResult = Assert.IsType <ViewResult>(target);

            Assert.IsAssignableFrom <ArticleModel>(viewResult.ViewData.Model);
        }
        public void Create_should_return_view()
        {
            //when
            var result = _controller.Create();

            //then
            result.Should().BeAssignableTo(typeof(ActionResult));
        }