Test DIV and PRE tag

1: class CausalityForTests : IDisposable 2: { 3: private Exception exception = null; 4:   5: public CausalityForTests(DispatcherQueue dispatcherQueue) 6: { 7: Port<Exception> exceptionPort = new Port<Exception>(); 8: Causality causality = new Causality( 9: string.Format("CausalityForTests: {0}", Guid.NewGuid()), 10: exceptionPort); 11: Arbiter.Activate( 12: dispatcherQueue, 13: exceptionPort.Receive(e => this.exception = e)); 14: Dispatcher.AddCausality(causality); 15: } 16:   17: public void Dispose() 18: { 19: if (this.exception != null) 20: { 21: throw this.exception; 22: } 23: } 24: }