C# Класс Open.Core.Assert

BDD style testing assertions.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Assert ( object subject ) : System
Format ( object value ) : string
ThrowError ( string message ) : void

Описание методов

Is() публичный Метод

Asserts that an object is equal to another object (uses != comparison).
public Is ( object value ) : void
value object The value to compare to.
Результат void

IsFalse() публичный Метод

Asserts that an value is False.
public IsFalse ( ) : void
Результат void

IsNot() публичный Метод

Asserts that an object is not equal to another object (uses != comparison).
public IsNot ( object value ) : void
value object The value to compare to.
Результат void

IsNotNull() публичный Метод

Asserts that an object is not null.
public IsNotNull ( ) : void
Результат void

IsNull() публичный Метод

Asserts that an object is not null.
public IsNull ( ) : void
Результат void

IsTrue() публичный Метод

Asserts that an value is True.
public IsTrue ( ) : void
Результат void

That() публичный статический Метод

Factory method for starting an assertion.
public static That ( object value ) : Assert
value object The value being examined.
Результат Assert