C# Class TDD_Katas_project.TheWordWrapKata.WordWrap

Exibir arquivo Open project: garora/TDD-Katas Class Usage Examples

Public Methods

Method Description
Wrap ( string word, int wordLength ) : string

Private Methods

Method 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 method

public static Wrap ( string word, int wordLength ) : string
word string
wordLength int
return string