public GetDepth ( |
||
exceptionType |
/// The |
|
리턴 | int |
public int GetDepth( Type exceptionType )
{
return getDepth( exceptionType, 0 );
}
RollbackRuleAttribute::GetDepth ( object exception ) : int |
public void AlwaysTrue() { RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); Assert.IsTrue(rr.GetDepth(typeof (SystemException)) > 0); Assert.IsTrue(rr.GetDepth(typeof (ApplicationException)) > 0); Assert.IsTrue(rr.GetDepth(typeof (DataException)) > 0); Assert.IsTrue(rr.GetDepth(typeof (TransactionSystemException)) > 0); }