public void ShouldHandleExceptionsWithDefaultExceptionHandler()
{
using (var bus = Depot.Connect("localhost/integration"))
{
bus.Subscribe((HelloWorldMessage hwm) => { throw new Exception("ERMAGHERD, EXPLODE!!11"); });
bus.Publish(new HelloWorldMessage { Message = "subscribe!" });
WaitForDelivery();
Assert.That(admin.Exists(IntegrationVHost, new Queue("ErrorQueue")));
Assert.That(admin.Exists(IntegrationVHost, new Exchange("ErrorExchange")));
var messages = admin.Messages(IntegrationVHost, new Queue("ErrorQueue"));
Assert.That(messages.Count(), Is.EqualTo(1));
}
}