C# Class Xunit.Reporting.Internal.Generator.Pluralizer

A simple helper class for pluralizing names.
Afficher le fichier Open project: BjRo/xunitbddextensions

Méthodes publiques

Méthode Description
Pluralize ( string name, int value ) : string

Takes the name specified via name and appends an "s" to it in case the value specified via value is greater than 1.

Method Details

Pluralize() public méthode

Takes the name specified via name and appends an "s" to it in case the value specified via value is greater than 1.
public Pluralize ( string name, int value ) : string
name string /// Specifies the name to pluralize. ///
value int /// Specifies the value to decide on. ///
Résultat string