コード例 #1
0
ファイル: XsltApiV2.cs プロジェクト: wudilab/corefx
 // --------------------------------------------------------------------------------------------------------------
 //  CheckExpectedError
 //  -------------------------------------------------------------------------------------------------------------
 public void CheckExpectedError(Exception ex, string assembly, string res, string[] strParams)
 {
     CExceptionHandler handler = new CExceptionHandler(_strPath + "exceptions.xml", assembly, _output);
     if (!handler.VerifyException(ex, res, strParams))
     {
         Assert.True(false);
     }
     return;
 }
コード例 #2
0
        // --------------------------------------------------------------------------------------------------------------
        //  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;
        }
コード例 #3
0
ファイル: XsltApiV2.cs プロジェクト: wudilab/corefx
 // --------------------------------------------------------------------------------------------------------------
 //  CheckExpectedError
 //  -------------------------------------------------------------------------------------------------------------
 public void CheckExpectedError(Exception ex, string assembly)
 {
     CExceptionHandler handler = new CExceptionHandler(_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;
 }
コード例 #4
0
ファイル: XsltApiV2.cs プロジェクト: geoffkizer/corefx
 // --------------------------------------------------------------------------------------------------------------
 //  CheckExpectedError
 //  -------------------------------------------------------------------------------------------------------------
 public void CheckExpectedError(Exception ex, string assembly, string res, string[] strParams)
 {
     CExceptionHandler handler = new CExceptionHandler(_strPath + "exceptions.xml", assembly, _output);
     if (!handler.VerifyException(ex, res, strParams))
     {
         Assert.True(false);
     }
     return;
 }
コード例 #5
0
ファイル: XsltApiV2.cs プロジェクト: geoffkizer/corefx
 // --------------------------------------------------------------------------------------------------------------
 //  CheckExpectedError
 //  -------------------------------------------------------------------------------------------------------------
 public void CheckExpectedError(Exception ex, string assembly)
 {
     CExceptionHandler handler = new CExceptionHandler(_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;
 }
コード例 #6
0
ファイル: XSLTransform.cs プロジェクト: shmao/corefx
 // --------------------------------------------------------------------------------------------------------------
 //  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;
 }