예제 #1
0
        public void Init()
        {
            var sln = TestSolution1;    // VS 2015
            var testDir1 = Path.GetFullPath(TestFolder1);
            var sln2 = TestSolution2;
            if (!File.Exists(sln))
            {
                sln = sln2;             // VS 2013
                testDir1 = Path.GetFullPath(TestFolder2);
            }
            Assert.IsTrue(File.Exists(sln));

            var output = Path.GetFullPath(OutputFolder);
            string sourceTestProject1 = testDir1 + @"\" + TestProject1;
            Assert.IsTrue(File.Exists(sourceTestProject1));

            var outputProject1 = output + sourceTestProject1;
            gen = new ProjectGeneratorWrap()
                .Prepare(testDir1, sourceTestProject1, output)
                .MsbuildGenerate(outputProject1);

            Assert.IsTrue(File.Exists(gen.DestinationFileName));
        }
예제 #2
0
        public void Init()
        {
            var testDir = (TestFolder3); var output = (OutputFolder);
            string sourceTestProject1 = testDir + @"\" + TestProject3;
            if (!File.Exists(sourceTestProject1))
                return;

            var outputProject1 = output + sourceTestProject1;
            gen = new ProjectGeneratorWrap();
            gen.Prepare(testDir, sourceTestProject1, output);
            gen.MsbuildGenerate(outputProject1);
        }