Class TestExceptionWrapper

class TestExceptionWrapper
  : fluentasserts.core.base.TestException ;

Constructors

NameDescription
this (exception, results, fileName, line, next)

Methods

NameDescription
print (printer)
toString ()

Example

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");