protected override void DoTearDown() { foreach (var disposable in DisposableTracker.GetTrackedDisposables()) { var msmqMessageQueue = disposable as MsmqMessageQueue; if (msmqMessageQueue != null) { msmqMessageQueue.DeleteInputQueue(); } var messageQueue = disposable as MessageQueue; if (messageQueue != null) { MessageQueue.Delete(messageQueue.Path); } } }