Thanks for the reply. I did manage to do something similar but with Microsoft Fakes, where I used a shim of the System.Windows.MessageBox and just made teh show method return whatever I desired(dialogresult Yes or No).

This stuff is messy to test and maybe not worth the effort, since it is most unlikely that someone will ever break it (but we all heard that one before...)

cheers
Henrik