C# Class TDD_Katas_project.TheWordWrapKata.WordWrap

Afficher le fichier Open project: garora/TDD-Katas Class Usage Examples

Méthodes publiques

Méthode Description
Wrap ( string word, int wordLength ) : string

Private Methods

Méthode Description
GetWrappedwordWithoutBlankSpacesAtStartOfNewLine ( string wrappedword ) : string
IsContainNewLine ( string word ) : bool
IsContainNullEmptyOrWhiteSpaces ( string word ) : bool
IsWhiteSpaceOrNewLine ( char wrd ) : bool
RemoveWhiteSpacesFromWrappedWord ( string wrappedword, int outCounter, int spaceCounter ) : string

Method Details

Wrap() public static méthode

public static Wrap ( string word, int wordLength ) : string
word string
wordLength int
Résultat string