Added missing comment
git-svn-id: file:///srv/devel/repo-conversion/nusu@126 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
dcf47768e5
commit
46ec063abd
|
@ -207,13 +207,17 @@ namespace Nuclex.Support.Tracking {
|
||||||
Assert.IsTrue(test.Wait(TimeSpan.Zero));
|
Assert.IsTrue(test.Wait(TimeSpan.Zero));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verifies that no error occurs when an even subscriber to the AsyncEnded event
|
||||||
|
/// unsubscribes in the event callback handler
|
||||||
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void TestUnsubscribeInEndedCallback() {
|
public void TestUnsubscribeInEndedCallback() {
|
||||||
TestTransaction monitored = new TestTransaction();
|
TestTransaction monitored = new TestTransaction();
|
||||||
UnsubscribingTransaction test = new UnsubscribingTransaction(monitored);
|
UnsubscribingTransaction test = new UnsubscribingTransaction(monitored);
|
||||||
|
|
||||||
ITransactionSubscriber mockedSubscriber = mockSubscriber(monitored);
|
ITransactionSubscriber mockedSubscriber = mockSubscriber(monitored);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Expect.Once.On(mockedSubscriber).Method("Ended").WithAnyArguments();
|
Expect.Once.On(mockedSubscriber).Method("Ended").WithAnyArguments();
|
||||||
monitored.End();
|
monitored.End();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user