C# Class Xunit.Runner.VisualStudio.VS2010.Guard

Provides a wrapper for assertions and exception throwning for simplicity
Afficher le fichier Open project: quetzalcoatl/xvsr10

Méthodes publiques

Méthode Description
StringNotNullOrEmpty ( string parameter, string parameterName ) : void

Checks if a supplied string variable is empty/null and throws appropriately

Method Details

StringNotNullOrEmpty() public static méthode

Checks if a supplied string variable is empty/null and throws appropriately
Throws if "parameter" is null or empty
public static StringNotNullOrEmpty ( string parameter, string parameterName ) : void
parameter string The parameter to check for Empty/Null-ness
parameterName string Name of the parameter being checked
Résultat void