C# Class katas.AdderKata.Adder

Mostra file Open project: xDD-CLE/katas Class Usage Examples

Public Methods

Method Description
Add ( string commaSeparatedNumbers ) : int

Private Methods

Method Description
BuildIndividualRegex ( string delimiterWithSquareBrackets ) : string
HandleExplicitDelimiters ( string commaSeparatedNumbers, string &delimitersRegex ) : string
HandleIndividualValues ( int number ) : int
SumUpValidNumbersAndCheckForInvalidOnes ( string commaSeparatedNumbers, string delimetersRegex ) : int
ValidateWhetherThereWereNegatives ( ) : void

Method Details

Add() public method

public Add ( string commaSeparatedNumbers ) : int
commaSeparatedNumbers string
return int