Home

Group multiple dump outputs

edited March 2018
I really like the facility to mark dumped output with a description. It would be handy to be able to group multiple outputs by a single description. For example:

. My Grouping
. Dump 1
. ||table|| Dump 2
. etc

This would be similar to a TransactionScope or any normal disposable pattern.
using(var token = Util.StartGroup("Starting test case...")) {
    "Test Case".Dump(token);
    DoSomethingElse();
}

DoSomethingElse(){ "Testing".Dump(); }
Output:

: Starting test case...
. Test Case
. Testing

Thanks!

Comments

Sign In or Register to comment.