C# Class UnityEngine.NUnit.Framework.Guard

Class used to guard against unexpected argument values by throwing an appropriate exception.
Datei anzeigen Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
ArgumentNotNull ( object value, string name ) : void

Throws an exception if an argument is null

ArgumentNotNullOrEmpty ( string value, string name ) : void

Throws an exception if a string argument is null or empty

Method Details

ArgumentNotNull() public static method

Throws an exception if an argument is null
public static ArgumentNotNull ( object value, string name ) : void
value object The value to be tested
name string The name of the argument
return void

ArgumentNotNullOrEmpty() public static method

Throws an exception if a string argument is null or empty
public static ArgumentNotNullOrEmpty ( string value, string name ) : void
value string The value to be tested
name string The name of the argument
return void