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

A simple helper class for pluralizing names.
Exibir arquivo Open project: BjRo/xunitbddextensions

Public Methods

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

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. ///
return string