public void CSiApplication_Show_Visible_Shows()
        {
            using (CSiApplication app = new CSiApplication(CSiData.pathApp, visible: true))
            {
                bool programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);

                app.Unhide();
                programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);

                app.Unhide();
                programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);
            }
        }
Ejemplo n.º 2
0
        public void CSiApplication_Show_Hidden_Shows()
        {
            bool programIsVisible;

            using (CSiApplication app = new CSiApplication(CSiData.pathApp))
            {
                app.ApplicationStart();
                programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);

                app.Hide();
                programIsVisible = app.Visible();
                Assert.IsFalse(programIsVisible);

                app.Unhide();
                programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);
            }
        }