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(); }
private void RestartService() { GSDServiceProcess.StopService(); GSDServiceProcess.StartService(); }