public void Start() { // Arrange StartController controller = new StartController(); // Act ViewResult result = controller.Start() as ViewResult; // Assert Assert.IsNotNull(result); }
public void Start_WhenNavigateTo_ShouldReturnAViewResult() { _mockConfiguration = new Mock <IConfigurationSettings>(); // Arrange StartController controller = new StartController(_mockConfiguration.Object, new Mock <ILog>().Object); // Act ViewResult result = controller.Start() as ViewResult; // Assert Assert.IsNotNull(result); }