C# Class Tests2.BBCodeTestUtil

显示文件 Open project: Pablissimo/CodeKicker.BBCode-Mod Class Usage Examples

Public Methods

Method Description
CreateRootNode ( BBTag allowedTags ) : SequenceNode
GetAnyTree ( ) : SequenceNode
GetParserForTest ( ErrorMode errorMode, bool includePlaceholder, BBTagClosingStyle listItemBBTagClosingStyle, bool enableIterationElementBehavior ) : BBCodeParser
GetSimpleParserForTest ( ErrorMode errorMode ) : BBCodeParser
IsValid ( string bbCode, ErrorMode errorMode ) : bool
SimpleBBEncodeForTest ( string bbCode, ErrorMode errorMode ) : string

Private Methods

Method Description
AddSubnodes ( BBTag allowedTags, SyntaxTreeNode node ) : void
CreateNode ( BBTag allowedTags, bool allowText ) : SyntaxTreeNode
GetUrl2Href ( IAttributeRenderingContext attributeRenderingContext ) : string

Method Details

CreateRootNode() public static method

public static CreateRootNode ( BBTag allowedTags ) : SequenceNode
allowedTags CodeKicker.BBCode.BBTag
return CodeKicker.BBCode.SyntaxTree.SequenceNode

GetAnyTree() public static method

public static GetAnyTree ( ) : SequenceNode
return CodeKicker.BBCode.SyntaxTree.SequenceNode

GetParserForTest() public static method

public static GetParserForTest ( ErrorMode errorMode, bool includePlaceholder, BBTagClosingStyle listItemBBTagClosingStyle, bool enableIterationElementBehavior ) : BBCodeParser
errorMode ErrorMode
includePlaceholder bool
listItemBBTagClosingStyle BBTagClosingStyle
enableIterationElementBehavior bool
return CodeKicker.BBCode.BBCodeParser

GetSimpleParserForTest() public static method

public static GetSimpleParserForTest ( ErrorMode errorMode ) : BBCodeParser
errorMode ErrorMode
return CodeKicker.BBCode.BBCodeParser

IsValid() public static method

public static IsValid ( string bbCode, ErrorMode errorMode ) : bool
bbCode string
errorMode ErrorMode
return bool

SimpleBBEncodeForTest() public static method

public static SimpleBBEncodeForTest ( string bbCode, ErrorMode errorMode ) : string
bbCode string
errorMode ErrorMode
return string