IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Class used to guard against unexpected argument values or operations by throwing an appropriate exception. More...
Static Public Member Functions | |
static void | ArgumentNotNull (object value, string name) |
Throws an exception if an argument is null More... | |
static void | ArgumentNotNullOrEmpty (string value, string name) |
Throws an exception if a string argument is null or empty More... | |
static void | ArgumentInRange (bool condition, string message, string paramName) |
Throws an ArgumentOutOfRangeException if the specified condition is not met. More... | |
static void | ArgumentValid (bool condition, string message, string paramName) |
Throws an ArgumentException if the specified condition is not met. More... | |
static void | OperationValid (bool condition, string message) |
Throws an InvalidOperationException if the specified condition is not met. More... | |
Class used to guard against unexpected argument values or operations by throwing an appropriate exception.
|
inlinestatic |
Throws an exception if an argument is null
value | The value to be tested |
name | The name of the argument |
Referenced by NUnit.Framework.Api.FrameworkController.CountTests(), NUnit.Engine.Services.ProjectService.ExpandProjectPackage(), NUnit.Framework.Api.FrameworkController.ExploreTests(), NUnit.Engine.Services.DomainManager.GetApplicationBase(), NUnit.Engine.Services.DomainManager.GetConfigFile(), NUnit.Framework.Api.FrameworkController.RunAsync(), and NUnit.Framework.Api.FrameworkController.RunTests().
|
inlinestatic |
Throws an exception if a string argument is null or empty
value | The value to be tested |
name | The name of the argument |
Referenced by NUnit.Engine.Services.DomainManager.GetConfigFile().
|
inlinestatic |
Throws an ArgumentOutOfRangeException if the specified condition is not met.
condition | The condition that must be met |
message | The exception message to be used |
paramName | The name of the argument |
|
inlinestatic |
Throws an ArgumentException if the specified condition is not met.
condition | The condition that must be met |
message | The exception message to be used |
paramName | The name of the argument |
Referenced by NUnit.Engine.Services.ProjectService.ExpandProjectPackage().
|
inlinestatic |
Throws an InvalidOperationException if the specified condition is not met.
condition | The condition that must be met |
message | The exception message to be used |