public void IsSubDirectory_MatchesOnChildPath() { string path = "$/Branch1/1.1"; string root = "$/Branch1"; bool result = WarnMultipleBranchPolicy.IsSubDirectoryOf(root, path); Assert.IsTrue(result); }
public void IsSubDirectory_DoesntMatchOnSimilarRootPath() { string path = "$/Branch1.1"; string root = "$/Branch1"; bool result = WarnMultipleBranchPolicy.IsSubDirectoryOf(root, path); Assert.IsFalse(result); }