public void Bug694908()
        {
            Application.ThreadException += CrashingForm.HandleThreadException;

            using (var form = new CrashingForm())
            {
                form.Show();
                Application.DoEvents();
            }
            // with bug 694908 we don't come here. Instead NUnit exits.
            Assert.IsTrue(CrashingForm.HasHandledException);
        }
예제 #2
0
		public void Bug694908 ()
		{
			Application.ThreadException += CrashingForm.HandleThreadException;

			using (var form = new CrashingForm ())
			{
				form.Show ();
				Application.DoEvents ();
			}
			// with bug 694908 we don't come here. Instead NUnit exits.
			Assert.IsTrue (CrashingForm.HasHandledException);
		}