Esempio n. 1
0
        public void IsSubDirectory_MatchesOnChildPath()
        {
            string path = "$/Branch1/1.1";
            string root = "$/Branch1";

            bool result = WarnMultipleBranchPolicy.IsSubDirectoryOf(root, path);

            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void IsSubDirectory_DoesntMatchOnSimilarRootPath()
        {
            string path = "$/Branch1.1";
            string root = "$/Branch1";

            bool result = WarnMultipleBranchPolicy.IsSubDirectoryOf(root, path);

            Assert.IsFalse(result);
        }