다음을 통해 공유


ExpectedExceptionBaseAttribute.RethrowIfAssertException 메서드

AssertFailedException 또는 AssertInconclusiveException인 경우 예외를 다시 throw합니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.UnitTesting
어셈블리:  Microsoft.VisualStudio.QualityTools.UnitTestFramework(Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

구문

‘선언
Protected Sub RethrowIfAssertException ( _
    exception As Exception _
)
protected void RethrowIfAssertException(
    Exception exception
)
protected:
void RethrowIfAssertException(
    Exception^ exception
)
member RethrowIfAssertException : 
        exception:Exception -> unit
protected function RethrowIfAssertException(
    exception : Exception
)

매개 변수

  • exception
    형식: Exception

    어설션 예외인 경우 throw할 예외입니다.

.NET Framework 보안

참고 항목

참조

ExpectedExceptionBaseAttribute 클래스

Microsoft.VisualStudio.TestTools.UnitTesting 네임스페이스