C# Class Open.Core.Assert

BDD style testing assertions.
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL

Méthodes publiques

Méthode Description
Is ( object value ) : void

Asserts that an object is equal to another object (uses != comparison).

IsFalse ( ) : void

Asserts that an value is False.

IsNot ( object value ) : void

Asserts that an object is not equal to another object (uses != comparison).

IsNotNull ( ) : void

Asserts that an object is not null.

IsNull ( ) : void

Asserts that an object is not null.

IsTrue ( ) : void

Asserts that an value is True.

That ( object value ) : Assert

Factory method for starting an assertion.

Private Methods

Méthode Description
Assert ( object subject ) : System
Format ( object value ) : string
ThrowError ( string message ) : void

Method Details

Is() public méthode

Asserts that an object is equal to another object (uses != comparison).
public Is ( object value ) : void
value object The value to compare to.
Résultat void

IsFalse() public méthode

Asserts that an value is False.
public IsFalse ( ) : void
Résultat void

IsNot() public méthode

Asserts that an object is not equal to another object (uses != comparison).
public IsNot ( object value ) : void
value object The value to compare to.
Résultat void

IsNotNull() public méthode

Asserts that an object is not null.
public IsNotNull ( ) : void
Résultat void

IsNull() public méthode

Asserts that an object is not null.
public IsNull ( ) : void
Résultat void

IsTrue() public méthode

Asserts that an value is True.
public IsTrue ( ) : void
Résultat void

That() public static méthode

Factory method for starting an assertion.
public static That ( object value ) : Assert
value object The value being examined.
Résultat Assert