private static void CheckIfPathsCovered(List <string> paths, HashSet <string> sparseSet, bool shouldBeCovered) { foreach (string path in paths) { SparseVerb.PathCoveredBySparseFolders(path, sparseSet).ShouldEqual(shouldBeCovered); } }
private static void ConfirmGitPathsParsed(string paths, List <string> expectedPaths) { int index = 0; int listIndex = 0; while (index < paths.Length - 1) { int nextSeparatorIndex = paths.IndexOf(StatusPathSeparatorToken, index); string expectedGitPath = expectedPaths[listIndex]; SparseVerb.GetNextGitPath(ref index, paths).ShouldEqual(expectedGitPath); index.ShouldEqual(nextSeparatorIndex + 1); ++listIndex; } }