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

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

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