Ejemplo n.º 1
0
        public void preceeding()
        {
            theGraph.Preceeding("before-b", "b");
            theGraph.CompileDependencies(new PackageLog());

            theGraph.FileDependencyFor("before-b").MustBeAfter(theGraph.FileDependencyFor("b")).ShouldBeFalse();
            theGraph.FileDependencyFor("b").MustBeAfter(theGraph.FileDependencyFor("before-b")).ShouldBeTrue();

            ScriptNamesFor("b").ShouldHaveTheSameElementsAs("b");
            ScriptNamesFor("b", "before-b").ShouldHaveTheSameElementsAs("before-b", "b");
            ScriptNamesFor("before-b").ShouldHaveTheSameElementsAs("before-b");
        }