diff --git a/Source/Tracking/Transaction.Test.cs b/Source/Tracking/Transaction.Test.cs index 6deb1b0..d3d0b5d 100644 --- a/Source/Tracking/Transaction.Test.cs +++ b/Source/Tracking/Transaction.Test.cs @@ -207,13 +207,17 @@ namespace Nuclex.Support.Tracking { Assert.IsTrue(test.Wait(TimeSpan.Zero)); } + /// + /// Verifies that no error occurs when an even subscriber to the AsyncEnded event + /// unsubscribes in the event callback handler + /// [Test] public void TestUnsubscribeInEndedCallback() { TestTransaction monitored = new TestTransaction(); UnsubscribingTransaction test = new UnsubscribingTransaction(monitored); ITransactionSubscriber mockedSubscriber = mockSubscriber(monitored); - + try { Expect.Once.On(mockedSubscriber).Method("Ended").WithAnyArguments(); monitored.End();