public void Test_Show_ShouldNotGiveErrors_BUGFIX()
 {
     using (var unhandledExceptionHelper = new UnhandledExceptionHelperWin())
     {   
         //---------------Set up test pack-------------------
         TreeViewWin treeView = GetControlledLifetimeFor((TreeViewWin) GetControlFactory().CreateTreeView());
         var form = GetControlledLifetimeFor(GetControlFactory().CreateForm());
         form.Controls.Add(treeView);
         //---------------Assert Precondition----------------
         Assert.IsTrue(unhandledExceptionHelper.IsExceptionHandlingActive);
         //---------------Execute Test ----------------------
         form.Show();
         //---------------Test Result -----------------------
         Assert.IsTrue(form.Visible);
     }
 }
Beispiel #2
0
 public void Test_Show_ShouldNotGiveErrors_BUGFIX()
 {
     using (var unhandledExceptionHelper = new UnhandledExceptionHelperWin())
     {
         //---------------Set up test pack-------------------
         TreeViewWin treeView = GetControlledLifetimeFor((TreeViewWin)GetControlFactory().CreateTreeView());
         var         form     = GetControlledLifetimeFor(GetControlFactory().CreateForm());
         form.Controls.Add(treeView);
         //---------------Assert Precondition----------------
         Assert.IsTrue(unhandledExceptionHelper.IsExceptionHandlingActive);
         //---------------Execute Test ----------------------
         form.Show();
         //---------------Test Result -----------------------
         Assert.IsTrue(form.Visible);
     }
 }