C# Class Open.Core.Assert

BDD style testing assertions.
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method 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

Method Description
Assert ( object subject ) : System
Format ( object value ) : string
ThrowError ( string message ) : void

Method Details

Is() public method

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

IsFalse() public method

Asserts that an value is False.
public IsFalse ( ) : void
return void

IsNot() public method

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

IsNotNull() public method

Asserts that an object is not null.
public IsNotNull ( ) : void
return void

IsNull() public method

Asserts that an object is not null.
public IsNull ( ) : void
return void

IsTrue() public method

Asserts that an value is True.
public IsTrue ( ) : void
return void

That() public static method

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