public void AsyncEndSyncReloadsSubscriptionsEvenWhenThrowingException() { SubscriptionParameters subParams = CreateSubscriptionParams("NoSuchPublication", "Test"); SqlSubscriptionManager subMgr = CreateSubscriptionManager(); subMgr.Add(subParams); Subscription sub = subMgr.Subscriptions["Test"]; subMgr.BeginSynchronize(sub); sub.AsyncResult.AsyncWaitHandle.WaitOne(asyncTimeout, false); subMgr.ClearCache(); try { subMgr.EndSynchronize(sub); } catch { } Assert.IsTrue(subMgr.SubscriptionsAreCurrent); }