C# Class Goedel.Utilities.Assert

Extension methods on
Afficher le fichier Open project: hallambaker/Mathematical-Mesh

Méthodes publiques

Méthode 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 méthode

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
Résultat void

False() public static méthode

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
Résultat void

NotNull() public static méthode

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
Résultat void

NotNull() public static méthode

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
Résultat void

Null() public static méthode

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
Résultat void

Null() public static méthode

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
Résultat void

True() public static méthode

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
Résultat void

True() public static méthode

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
Résultat void