C# Class Goedel.Utilities.Assert

Extension methods on
Exibir arquivo Open project: hallambaker/Mathematical-Mesh

Public Methods

Method Description
False ( bool Condition, ThrowDelegate Throw ) : void

Throw an exception if the specified condition is true. Assert.False (test, NYIException.Throw, "test was true")

False ( bool Condition, ThrowDelegate Throw, object Reason ) : void

Throw an exception if the specified condition is true. Assert.False (test, NYIException.Throw, "test was true")

NotNull ( object Object, ThrowDelegate Throw ) : void

Throw an exception if the specified object is not null. Throw.False (Object, NYIException.Throw)

NotNull ( object Object, ThrowDelegate Throw, string Reason ) : void

Throw an exception if the specified object is not null. Throw.False (Object, NYIException.Throw, "Object was not null")

Null ( object Object, ThrowDelegate Throw ) : void

Throw an exception if the specified object is null. Throw.False (Object, NYIException.Throw)

Null ( object Object, ThrowDelegate Throw, string Reason ) : void

Throw an exception if the specified object is null. Throw.False (Object, NYIException.Throw, "Object was null")

True ( bool Condition, ThrowDelegate Throw ) : void

Throw an exception if the specified condition is false. Assert.True (test, NYIException.Throw, "test was false")

True ( bool Condition, ThrowDelegate Throw, string Reason ) : void

Throw an exception if the specified condition is false. Assert.True (test, NYIException.Throw, "test was false")

Method Details

False() public static method

Throw an exception if the specified condition is true. Assert.False (test, NYIException.Throw, "test was true")
public static False ( bool Condition, ThrowDelegate Throw ) : void
Condition bool The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
return void

False() public static method

Throw an exception if the specified condition is true. Assert.False (test, NYIException.Throw, "test was true")
public static False ( bool Condition, ThrowDelegate Throw, object Reason ) : void
Condition bool The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
Reason object Reason, for debugging
return void

NotNull() public static method

Throw an exception if the specified object is not null. Throw.False (Object, NYIException.Throw)
public static NotNull ( object Object, ThrowDelegate Throw ) : void
Object object The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
return void

NotNull() public static method

Throw an exception if the specified object is not null. Throw.False (Object, NYIException.Throw, "Object was not null")
public static NotNull ( object Object, ThrowDelegate Throw, string Reason ) : void
Object object The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
Reason string Reason, for debugging
return void

Null() public static method

Throw an exception if the specified object is null. Throw.False (Object, NYIException.Throw)
public static Null ( object Object, ThrowDelegate Throw ) : void
Object object The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
return void

Null() public static method

Throw an exception if the specified object is null. Throw.False (Object, NYIException.Throw, "Object was null")
public static Null ( object Object, ThrowDelegate Throw, string Reason ) : void
Object object The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
Reason string Reason, for debugging
return void

True() public static method

Throw an exception if the specified condition is false. Assert.True (test, NYIException.Throw, "test was false")
public static True ( bool Condition, ThrowDelegate Throw ) : void
Condition bool The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
return void

True() public static method

Throw an exception if the specified condition is false. Assert.True (test, NYIException.Throw, "test was false")
public static True ( bool Condition, ThrowDelegate Throw, string Reason ) : void
Condition bool The condition
Throw ThrowDelegate Delegate that creates the exception to be thrown if /// Condition is true
Reason string Reason, for debugging
return void