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

                app.Hide();
                programIsVisible = app.Visible();
                Assert.IsFalse(programIsVisible);
            }
        }
Esempio n. 2
0
        public void CSiApplication_Show_Visible_Shows()
        {
            bool programIsVisible;

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

                app.Unhide();
                programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);
            }
        }
        public void CSiApplication_Hide_Hidden_Hides()
        {
            using (CSiApplication app = new CSiApplication(CSiData.pathApp, visible: false))
            {
                Assert.That(app.IsInitialized);
                bool programIsVisible = app.Visible();
                Assert.IsFalse(programIsVisible);

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

                app.Hide();
                programIsVisible = app.Visible();
                Assert.IsFalse(programIsVisible);
            }
        }
Esempio n. 4
0
        public void CSiApplication_Hide_Hidden_Hides()
        {
            bool programIsVisible = true;

            using (CSiApplication app = new CSiApplication(CSiData.pathApp))
            {
                app.ApplicationStart(visible: false);
                programIsVisible = app.Visible();
                //Assert.IsFalse(programIsVisible); // TODO: This is suppressed as there is a problem with initializing hidden.

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

                app.Hide();
                programIsVisible = app.Visible();
                Assert.IsFalse(programIsVisible);
            }
        }
        public void CSiApplication_Application_Start_Default_is_Visible()
        {
            bool programIsVisible;

            using (CSiApplication app = new CSiApplication(CSiData.pathApp))
            {
                Assert.That(app.IsInitialized);
                programIsVisible = app.Visible();
            }
            Assert.IsTrue(programIsVisible);
        }
        public void CSiApplication_Show_Hidden_Shows()
        {
            using (CSiApplication app = new CSiApplication(CSiData.pathApp, visible: false))
            {
                bool programIsVisible = app.Visible();
                Assert.IsFalse(programIsVisible);

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

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

                app.Unhide();
                programIsVisible = app.Visible();
                Assert.IsTrue(programIsVisible);
            }
        }
        public void CSiApplication_Application_Start_with_Invisible_is_Invisible()
        {
            bool programIsVisible = true;

            using (CSiApplication app = new CSiApplication(CSiData.pathApp, visible: false))
            {
                Assert.That(app.IsInitialized);
                programIsVisible = app.Visible();
            }
            Assert.IsFalse(programIsVisible);
        }
Esempio n. 8
0
        public void CSiApplication_Application_Start_with_Invisible_is_Invisible()
        {
            bool programIsVisible = true;

            using (CSiApplication app = new CSiApplication(CSiData.pathApp))
            {
                app.ApplicationStart(visible: false);
                programIsVisible = app.Visible();
            }
            Assert.IsFalse(programIsVisible);
        }
Esempio n. 9
0
        public void CSiApplication_Application_Start_Default_is_Visible()
        {
            bool programIsVisible;

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