C# Класс Testeroids.Assert

The Assert class extends the NUnit.Framework.Assert to make it aware of Nullable{T} values. When the value is null, it means the Act part of the test has not been run.
Наследование: NUnit.Framework.Assert
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
IsFalse ( bool condition ) : void

Asserts that a condition is false. If the condition is true the method throws an .

IsTrue ( bool condition ) : void

Asserts that a condition is true. If the condition is true the method throws an .

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

Метод Описание
AreEqual ( ITesteroidsMock expected, object actual ) : void
AreEqual ( ITesteroidsMock expected, object actual, string message ) : void
AreEqual ( int expected, int actual ) : void
AreEqual ( object expected, ITesteroidsMock actual ) : void
AreEqual ( object expected, ITesteroidsMock actual, string message ) : void
AreNotEqual ( int expected, int actual ) : void
AreSame ( ITesteroidsMock expected, object actual ) : void
AreSame ( ITesteroidsMock expected, object actual, string message ) : void
AreSame ( object expected, ITesteroidsMock actual ) : void
AreSame ( object expected, ITesteroidsMock actual, string message ) : void
Greater ( int expected, int actual ) : void
GreaterOrEqual ( int expected, int actual ) : void
Less ( int expected, int actual ) : void
LessOrEqual ( int expected, int actual ) : void

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

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

Asserts that a condition is false. If the condition is true the method throws an .
public static IsFalse ( bool condition ) : void
condition bool The evaluated condition
Результат void

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

Asserts that a condition is true. If the condition is true the method throws an .
public static IsTrue ( bool condition ) : void
condition bool The evaluated condition
Результат void