Ejemplo n.º 1
0
        public void TestActivate()
        {
            var win    = new WindowControl(app.Type(typeof(Application)).Current.MainWindow);
            var newWin = app.Type <Window>()();

            newWin.Show();
            var selector = new WPFListBox(target);

            selector.Activate();

            Assert.AreEqual(WindowControl.FromZTop(app).Handle, win.Handle);
            Assert.IsTrue((bool)selector.Dynamic().IsFocused);
            newWin.Close();
        }