示例#1
0
        public void ServiceStartsPrjFltService()
        {
            if (!GSDTestConfig.TestGSDOnPath)
            {
                Assert.Ignore("Skipping test, test only enabled when --test-gvfs-on-path is set");
            }

            this.Enlistment.UnmountGSD();
            StopPrjFlt();
            GSDServiceProcess.StopService();
            GSDServiceProcess.StartService();

            ServiceController controller = new ServiceController("prjflt");

            controller.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(10));
            controller.Status.ShouldEqual(ServiceControllerStatus.Running);

            this.Enlistment.MountGSD();
        }
示例#2
0
 private void RestartService()
 {
     GSDServiceProcess.StopService();
     GSDServiceProcess.StartService();
 }