コード例 #1
0
        public void NotFound()
        {
            // Setup
            var notFoundPage = new TextPage();

            _homeController.CurrentItem = new StartPage()
            {
                NotFoundPage = notFoundPage
            };

            // Execute
            var result = _homeController.NotFound();

            // Verify
            Assert.That(result is ViewPageResult);
            Assert.That(((ViewPageResult)result).Page, Is.EqualTo(notFoundPage));
        }