C# Class Xunit.Internal.Guard

A helper class for argument checking.
Mostrar archivo Open project: BjRo/xunitbddextensions

Public Methods

Method Description
AgainstArgumentNull ( object argument, string argumentName ) : void

Throws an ArgumentNullException in case the argument specified via argument is null.

AgainstNullOrEmptyString ( string argument, string argumentName ) : void

Checks whether the argument supplied by argument is null or an empty string.

Method Details

AgainstArgumentNull() public static method

Throws an ArgumentNullException in case the argument specified via argument is null.
public static AgainstArgumentNull ( object argument, string argumentName ) : void
argument object Specifies the argument
argumentName string Specifies the arguments name.
return void

AgainstNullOrEmptyString() public static method

Checks whether the argument supplied by argument is null or an empty string.
/// Thrown when is null or an empty string. ///
public static AgainstNullOrEmptyString ( string argument, string argumentName ) : void
argument string The name.
argumentName string Name of the argument.
return void