TestExceptionWrapper

Constructors

this
this(TestException exception, IResult[] results, string fileName, size_t line, Throwable next)

Members

Functions

print
void print(ResultPrinter printer)
toString
string toString()

Examples

The message of a wrapped exception should contain the original exception

auto exception = new TestException([ new MessageResult("first message") ], "", 0);
auto wrappedException = new TestExceptionWrapper(exception, [ new MessageResult("second message") ], "", 0);

wrappedException.msg.should.equal("first message\n\nsecond message\n");

Meta