Esempio n. 1
0
        public void Show_ReturnsCorrectView_True()
        {
            WordsController controller = new WordsController();
            ActionResult    showView   = controller.Show();

            Assert.IsInstanceOfType(showView, typeof(ViewResult));
        }
        public void Show_ReturnsCorrectView_True()
        {
            //Arrange
            Words           myWords    = new Words("cat", "the cat in the hat");
            WordsController controller = new WordsController();

            //Act
            ActionResult showView = controller.Show(1);

            //Assert
            Assert.IsInstanceOfType(showView, typeof(ViewResult));
        }