System.Xml.Tests.XsltApiTestCaseBase2.CheckExpectedError C# (CSharp) Méthode

CheckExpectedError() public méthode

public CheckExpectedError ( Exception ex, string assembly ) : void
ex System.Exception
assembly string
Résultat void
        public void CheckExpectedError(Exception ex, string assembly)
        {
            CExceptionHandler handler = new CExceptionHandler(Path.Combine(_strPath, "Exceptions.xml"), assembly, _output);
            bool result = handler.VerifyException(ex);
            if (handler.res != _expectedErrorCode)
            {
                _output.WriteLine("Expected Exception : {0}", _expectedErrorCode);
                _output.WriteLine("Actual Exception : {0}", handler.res);
                Assert.True(false);
            }
            if (!result)
            {
                Assert.True(false);
            }
            return;
        }

Same methods

XsltApiTestCaseBase2::CheckExpectedError ( Exception ex, string assembly, string res, string strParams ) : void