public void IsExceptionOk(Exception e, string expectedResId, string[] paramValues, LineInfo lineInfo) { var list = new ArrayList { expectedResId, lineInfo }; foreach (var param in paramValues) { list.Add(param); } IsExceptionOk(e, list.ToArray()); }
// -------------------------------------------------------------------------------------------------------------- // CheckExpectedError // ------------------------------------------------------------------------------------------------------------- public void CheckExpectedError(Exception ex, string assembly, string res, string[] strParams, LineInfo lInfo) { CExceptionHandler handler = new CExceptionHandler(Path.Combine(_strPath, "Exceptions.xml"), assembly, _output); if (!handler.VerifyException(ex, res, strParams, lInfo)) { Assert.True(false); } return; }