public void TfsModuleToTargetPath() { TfsModule sourceModule = new TfsModule { Path = @"C:\Module2" }; Target target = new Target("ExpertShare", @"c:\ExpertShare"); var paths = sourceModule.GetTargetPaths(target).ToList(); Assert.IsTrue(paths.Contains(@"")); }
public void TfsModuleToModule() { TfsModule sourceModule = new TfsModule { Path = @"C:\Module2" }; Module targetModule = new Module { Path = @"C:\Module1" }; targetModule.Provides.Add("Package1"); targetModule.Provides.Add("Package2"); var paths = sourceModule.GetTargetPaths(targetModule).ToList(); Assert.IsTrue(paths.Contains(@"\Dependencies")); }
public void ModuleToTfsModule() { Module sourceModule = new Module { Path = @"C:\Module2" }; sourceModule.Provides.Add("Package1"); sourceModule.Provides.Add("Package2"); TfsModule targetModule = new TfsModule { Path = @"C:\Module1" }; var paths = sourceModule.GetTargetPaths(targetModule).ToList(); Assert.IsTrue(paths.Contains(@"\packages\Package1\lib")); Assert.IsTrue(paths.Contains(@"\packages\Package2\lib")); }