Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ExpectedExceptionBaseAttribute.RethrowIfAssertException Method

Throws the exception again if it is an AssertFailedException or an AssertInconclusiveException.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

protected void RethrowIfAssertException(
	Exception exception
)

Parameters

exception
Type: Exception

The exception to throw if it is an assertion exception.

Show:
© 2015 Microsoft