public void ForgotPasswordConfirmation_WhenCalled_ReturnsViewResult() { AccountController controller = new AccountController(userManager: null, signInManager: null, stripeService: null); var result = controller.ForgotPasswordConfirmation() as ViewResult; Assert.That(result != null); Assert.That(result.ViewName, Is.Empty.Or.EqualTo("ForgotPasswordConfirmation")); }