C# Class ApprovalTests.Namers.StackTraceParsers.AttributeStackTraceParser

Inheritance: IStackTraceParser
ファイルを表示 Open project: approvals/ApprovalTests.Net Class Usage Examples

Protected Properties

Property Type Description
approvalFrame ApprovalUtilities.CallStack.Caller
caller ApprovalUtilities.CallStack.Caller

Public Methods

Method Description
GetFirstFrameForAttribute ( ApprovalUtilities.CallStack.Caller caller, string attributeName ) : ApprovalUtilities.CallStack.Caller
IsApplicable ( ) : bool
Parse ( StackTrace trace ) : bool

Protected Methods

Method Description
FindApprovalFrame ( ) : ApprovalUtilities.CallStack.Caller
GetAttributeType ( ) : string
GetMethodName ( ) : string

Private Methods

Method Description
ContainsAttribute ( object attributes, string attributeName ) : bool
GetFileNameForStack ( ApprovalUtilities.CallStack.Caller frame ) : string
GetRecursiveTypeName ( Type type ) : string

Method Details

FindApprovalFrame() protected method

protected FindApprovalFrame ( ) : ApprovalUtilities.CallStack.Caller
return ApprovalUtilities.CallStack.Caller

GetAttributeType() protected abstract method

protected abstract GetAttributeType ( ) : string
return string

GetFirstFrameForAttribute() public static method

public static GetFirstFrameForAttribute ( ApprovalUtilities.CallStack.Caller caller, string attributeName ) : ApprovalUtilities.CallStack.Caller
caller ApprovalUtilities.CallStack.Caller
attributeName string
return ApprovalUtilities.CallStack.Caller

GetMethodName() protected method

protected GetMethodName ( ) : string
return string

IsApplicable() public method

public IsApplicable ( ) : bool
return bool

Parse() public method

public Parse ( StackTrace trace ) : bool
trace System.Diagnostics.StackTrace
return bool

Property Details

approvalFrame protected_oe property

protected Caller,ApprovalUtilities.CallStack approvalFrame
return ApprovalUtilities.CallStack.Caller

caller protected_oe property

protected Caller,ApprovalUtilities.CallStack caller
return ApprovalUtilities.CallStack.Caller