Beispiel #1
0
        public void Restart_WillShutdownThroughDispatcher_Always()
        {
            var restarter = new Fake_AppRestarter();

            restarter.Restart();

            Assert.IsTrue(restarter.CalledShutdownApplicationThroughBeginInvoke);
        }
        public void Restart_WillShutdownThroughDispatcher_Always()
        {
            var restarter = new Fake_AppRestarter();

            restarter.Restart();

            Assert.IsTrue(restarter.CalledShutdownApplicationThroughBeginInvoke);
        }
        public void Restart_WillShutdownProcessAfterLaunchingAnotherInstance_Always()
        {
            var restarter = new Fake_AppRestarter();
            restarter.ForcedCurrentProcessAssemblyLocation = "dummyProcess.exe";

            restarter.Restart();

            Assert.IsTrue(restarter.CalledShutdownApplication);
        }
Beispiel #4
0
        public void Restart_WillShutdownProcessAfterLaunchingAnotherInstance_Always()
        {
            var restarter = new Fake_AppRestarter();

            restarter.ForcedCurrentProcessAssemblyLocation = "dummyProcess.exe";

            restarter.Restart();

            Assert.IsTrue(restarter.CalledShutdownApplication);
        }
        public void Restart_WillSpawnSameProcessAgain_Always()
        {
            var restarter = new Fake_AppRestarter();
            restarter.ForcedCurrentProcessAssemblyLocation = "dummyProcess.exe";

            restarter.Restart();

            Assert.AreEqual("dummyProcess.exe", restarter.ProcessStartedFilename);
            Assert.AreEqual(null, restarter.ProcessStartedArguments);
        }
Beispiel #6
0
        public void Restart_WillSpawnSameProcessAgain_Always()
        {
            var restarter = new Fake_AppRestarter();

            restarter.ForcedCurrentProcessAssemblyLocation = "dummyProcess.exe";

            restarter.Restart();

            Assert.AreEqual("dummyProcess.exe", restarter.ProcessStartedFilename);
            Assert.AreEqual(null, restarter.ProcessStartedArguments);
        }