public void Valid_DatabaseError() { ErrorController errorcontroller = new ErrorController(); var result = errorcontroller.DatabaseError() as ViewResult; Assert.IsNotNull(result); }