DUnitAssertError

An exception thrown when a unit test fails.

This exception derives from AssertError to make it possible for these errors to be thrown from nothrow methods.

Constructors

this
this(string message, string file, size_t line)

Constructor.

Members

Functions

addError
void addError(string caption, T value, string icon = "✗")

Add a line of error info to the exception log.

addExpectation
void addExpectation(string caption, T value, string icon = "✓")

Add a line of expected info to the exception log.

addInfo
void addInfo(string caption, T value, string icon = "ℹ")

Add a line of info to the exception log.

addTypedError
void addTypedError(string caption, T value, string icon = "✗")

Add a line of typed error info to the exception log.

addTypedExpectation
void addTypedExpectation(string caption, T value, string icon = "✓")

Add a line of typed expected info to the exception log.

addTypedInfo
void addTypedInfo(string caption, T value, string icon = "ℹ")

Add a line of typed info to the exception log.

Properties

log
string[] log [@property getter]

Return the exception log.

Meta