Exemple #1
0
 public void ValidateGraph(string rootRepo, string rootCommit, bool includeToolset)
 {
     DependencyTestDriver.GetGraphAndCompare("DependencyGraph", async driver =>
     {
         return(await driver.GetDependencyGraph(rootRepo, rootCommit, includeToolset));
     },
                                             Path.Combine(rootRepo, rootCommit, includeToolset ? "graph-with-toolset.xml" : "graph-without-toolset.xml"));
 }
Exemple #2
0
 public async Task ValidateGraph(string rootRepo, string rootCommit, bool includeToolset)
 {
     await DependencyTestDriver.GetGraphAndCompare("DependencyGraph",
                                                   driver => driver.GetDependencyGraph(rootRepo, rootCommit, includeToolset),
                                                   Path.Combine(rootRepo,
                                                                rootCommit,
                                                                includeToolset ? "graph-with-toolset.xml" : "graph-without-toolset.xml")
                                                   );
 }
        public void ValidateGraphWithNoChildNodes()
        {
            DependencyDetail dependencyDetail = new DependencyDetail
            {
                Name    = "Base.Asset",
                RepoUri = "RepoX",
                Commit  = "shaX",
                Version = "1.0.0"
            };

            DependencyTestDriver.GetGraphAndCompare("DependencyGraph", async driver =>
            {
                return(await driver.GetDependencyGraph(dependencyDetail));
            },
                                                    GetExpectedDependencyGraphAsync,
                                                    dependencyDetail,
                                                    DefaultOutputFileName,
                                                    true);
        }
        public void ValidateIncompleteFullGraph()
        {
            DependencyDetail dependencyDetail = new DependencyDetail
            {
                Name    = "Base.Asset",
                RepoUri = "RepoA",
                Commit  = "shaA",
                Version = "1.0.0"
            };

            DependencyTestDriver.GetGraphAndCompare("DependencyGraph", async driver =>
            {
                return(await driver.GetDependencyGraph(dependencyDetail));
            },
                                                    GetExpectedDependencyGraphAsync,
                                                    dependencyDetail,
                                                    "output1.xml",
                                                    false);
        }