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); } }
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); } }