예제 #1
0
        public void RootContainsSubRoots()
        {
            Console.WriteLine("Test: RootContainsSubRoots");
            CanonicalTrackedOutputFiles output = new CanonicalTrackedOutputFiles(DependencyTestHelper.MockTask,
                    null);

            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "a|b|C|d|e|F|g"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "a"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "g"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "d"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "a|b"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "f|g"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "b|a"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "g|f"));
            Assert.True(output.RootContainsAllSubRootComponents("a|b|c|d|e|f|g", "b|e"));
        }