public void It_should_return_a_partial_view() { //Arrange //Act var result = _controller.About(); result.Should().BeOfType <PartialViewResult>(); }
public void About() { // Arrange MainController controller = new MainController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsNotNull(result); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { mainController.About(); }