C# Class Tests2.BBCodeTestUtil

Afficher le fichier Open project: Pablissimo/CodeKicker.BBCode-Mod Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

CreateRootNode() public static méthode

public static CreateRootNode ( BBTag allowedTags ) : SequenceNode
allowedTags CodeKicker.BBCode.BBTag
Résultat CodeKicker.BBCode.SyntaxTree.SequenceNode

GetAnyTree() public static méthode

public static GetAnyTree ( ) : SequenceNode
Résultat CodeKicker.BBCode.SyntaxTree.SequenceNode

GetParserForTest() public static méthode

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

GetSimpleParserForTest() public static méthode

public static GetSimpleParserForTest ( ErrorMode errorMode ) : BBCodeParser
errorMode ErrorMode
Résultat CodeKicker.BBCode.BBCodeParser

IsValid() public static méthode

public static IsValid ( string bbCode, ErrorMode errorMode ) : bool
bbCode string
errorMode ErrorMode
Résultat bool

SimpleBBEncodeForTest() public static méthode

public static SimpleBBEncodeForTest ( string bbCode, ErrorMode errorMode ) : string
bbCode string
errorMode ErrorMode
Résultat string