示例#1
0
        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(@""));
        }
示例#2
0
        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"));
        }
示例#3
0
        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"));
        }