public void StateFactoryErrorsExposed()
{
var exception = new Exception("AHH!");
try
{
using (new MessageLoop<int>(() => { throw exception; }, false)) { }
}
catch (Exception ex)
{
Assert.AreEqual(ex, exception);
}
}