예제 #1
0
        protected static bool IsDependencyAndDependent(TProject dependency, TProject dependent, SchedulingResult <TProject> result)
        {
            // Unfortunately the test pip graph we are using doesn't keep track of dependencies/dependents. So we check there is a directory output of the dependency
            // that is a directory input for a dependent
            var dependencyProcess = result.RetrieveSuccessfulProcess(dependency);
            var dependentProcess  = result.RetrieveSuccessfulProcess(dependent);

            return(dependencyProcess.DirectoryOutputs.Any(directoryOutput => dependentProcess.DirectoryDependencies.Any(directoryDependency => directoryDependency == directoryOutput)));
        }
예제 #2
0
 protected static void AssertDependencyAndDependent(TProject dependency, TProject dependent, SchedulingResult <TProject> result)
 {
     XAssert.IsTrue(IsDependencyAndDependent(dependency, dependent, result));
 }