Group multiple dump outputs
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.
: Starting test case...
. Test Case
. Testing
Thanks!
. 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
var token = Util.StartGroup("Starting test case.", t => $"Test finished in ${t.Elapsed}".Dump())
http://share.linqpad.net/nqj4r2.linq
Tom