Class TestExceptionWrapper
class TestExceptionWrapper
: fluentasserts.core.base.TestException
;
Constructors
Name | Description |
this
(exception, results, fileName, line, next)
|
|
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");