public void InitializeAndSwitch() { var sm = new vScreen.lib.ScreenManager(4); sm.Switch(1, IntPtr.Zero); WindowUnitTests.Wait(1); sm.Switch(0, IntPtr.Zero); }
public void Collect() { var w = new vScreen.lib.Window(WindowUnitTests.StartTestApp()); var s = new vScreen.lib.Screen(0); Assert.IsTrue(s.Count > 0); Assert.IsTrue(s.GetWindowByTitle(WindowUnitTests.TestAppTitle).Count == 1); WindowUnitTests.KillTestApp(); }
public void HideAllShowAll() { WindowUnitTests.Wait(1); var s1 = new vScreen.lib.Screen(0); s1.HideAll(IntPtr.Zero); WindowUnitTests.Wait(2); s1.ShowAll(); WindowUnitTests.Wait(1); }
public void HideShowProgramManager() { var s = new vScreen.lib.Screen(0); if (s.ProgramManager != null) { s.ProgramManager.Hide(); WindowUnitTests.Wait(1); s.ProgramManager.Show(); WindowUnitTests.Wait(1); } }
public void DoNotCollectNotVisibleWindow() { var w = new vScreen.lib.Window(WindowUnitTests.StartTestApp()); var s1 = new vScreen.lib.Screen(0); Assert.IsTrue(s1.GetWindowByTitle(WindowUnitTests.TestAppTitle).Count == 1); w.Hide(); var s2 = new vScreen.lib.Screen(0); Assert.IsTrue(s2.GetWindowByTitle(WindowUnitTests.TestAppTitle).Count == 0); w.Show(); var s3 = new vScreen.lib.Screen(0); Assert.IsTrue(s3.GetWindowByTitle(WindowUnitTests.TestAppTitle).Count == 1); WindowUnitTests.KillTestApp(); }