public void SettingFocusOnWindowFiresActivated()
        {
            TestableRootWorkItem workItem = new TestableRootWorkItem();
            Form         parentForm       = workItem.Items.AddNew <Form>();
            MdiWorkspace workspace        = new MdiWorkspace(parentForm);

            workItem.Workspaces.Add(workspace);
            MockWPFSmartPart smartPart = workItem.SmartParts.AddNew <MockWPFSmartPart>();

            object argsSmartPart = null;

            parentForm.Show();
            MockWPFSmartPart sp1 = workItem.SmartParts.AddNew <MockWPFSmartPart>();

            workspace.Show(sp1);
            workspace.Show(smartPart);

            workspace.SmartPartActivated +=
                delegate(object sender, WorkspaceEventArgs args) { argsSmartPart = args.SmartPart; };

            workspace.Windows[sp1.ElementHost].Focus();

            Assert.AreEqual(sp1, argsSmartPart);
        }