From 46ec063abdcb8ee7af00ab9df1610d3ee6170dc4 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Wed, 1 Apr 2009 21:19:09 +0000 Subject: [PATCH] Added missing comment git-svn-id: file:///srv/devel/repo-conversion/nusu@126 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Tracking/Transaction.Test.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();