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

Provides a wrapper for assertions and exception throwning for simplicity
显示文件 Open project: quetzalcoatl/xvsr10

Public Methods

Method Description
StringNotNullOrEmpty ( string parameter, string parameterName ) : void

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

Method Details

StringNotNullOrEmpty() public static method

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
return void