コード例 #1
0
        public void BlogArticleNotFoundTest()
        {
            var controller = new BlogController();

            // non-existent slug
            var slug = "aaaaaaaaaaaaaaaaaa";

            controller.Article(slug);
        }
コード例 #2
0
        public void BlogArticleFoundTest()
        {
            var controller = new BlogController();

            // non-existent slug
            var slug = "all-the-tourist-stuff-you-should-probably-do-in-stockholm";

            var result = controller.Article(slug);

            Assert.IsInstanceOfType(result, (typeof(ActionResult)));
        }