private void RunServiceCommandAndCheckOutput(string argument, string[] expectedRepoRoots, string[] unexpectedRepoRoots = null) { GVFSProcess gvfsProcess = new GVFSProcess( Path.Combine(TestContext.CurrentContext.TestDirectory, Properties.Settings.Default.PathToGVFS), null); string result = gvfsProcess.RunServiceVerb(argument); result.ShouldContain(expectedRepoRoots); if (unexpectedRepoRoots != null) { result.ShouldNotContain(false, unexpectedRepoRoots); } }
private void RunServiceCommandAndCheckOutput(string argument, string[] expectedRepoRoots, string[] unexpectedRepoRoots = null) { GVFSProcess gvfsProcess = new GVFSProcess( GVFSTestConfig.PathToGVFS, enlistmentRoot: null, localCacheRoot: null); string result = gvfsProcess.RunServiceVerb(argument); result.ShouldContain(expectedRepoRoots); if (unexpectedRepoRoots != null) { result.ShouldNotContain(false, unexpectedRepoRoots); } }