C# Class 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.
Inheritance: NUnit.Framework.Assert
显示文件 Open project: Testeroids/Testeroids Class Usage Examples

Public Methods

Method Description
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 .

Private Methods

Method Description
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

Method Details

IsFalse() public static method

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
return void

IsTrue() public static method

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
return void