public void It_should_return_a_partial_view()
        {
            //Arrange

            //Act
            var result = _controller.About();

            result.Should().BeOfType <PartialViewResult>();
        }
Exemplo n.º 2
0
        public void About()
        {
            // Arrange
            MainController controller = new MainController();

            // Act
            ViewResult result = controller.About() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
Exemplo n.º 3
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     mainController.About();
 }