public void FirstChanceException_Add_Remove() { EventHandler<FirstChanceExceptionEventArgs> handler = (sender, e) => { }; AppDomain.CurrentDomain.FirstChanceException += handler; AppDomain.CurrentDomain.FirstChanceException -= handler; }