Exemplo n.º 1
0
        private string AddonSupportData()
        {
            var data = new AddonSupportSolutionItemData(targetParser, currentCommand as IHasBuildTarget, suite.ActiveGoal);

            return(String.Format(@"---
bari-path: {0}
goal: {1}
target: {2}
startup-path: {3}
", data.BariPath, data.Goal, data.Target, data.StartupPath));
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            suite      = new Suite(new TestFileSystemDirectory("root"));
            suiteNoExe = new Suite(new TestFileSystemDirectory("root"));
            suite.GetModule("TestModule").GetProject("TestLib").Type      = ProjectType.Library;
            suiteNoExe.GetModule("TestModule").GetProject("TestLib").Type = ProjectType.Library;
            suite.GetModule("TestModule").GetProject("TestExe").Type      = ProjectType.Executable;

            product = suite.GetProduct("TestProduct");
            product.AddModule(suite.GetModule("TestModule"));

            targetParser      = new Mock <ICommandTargetParser>();
            buildTargetSource = new Mock <IHasBuildTarget>();
            data = new AddonSupportSolutionItemData(targetParser.Object, buildTargetSource.Object, new Goal("test"));
        }
Exemplo n.º 3
0
 public void TargetNotAvailableInCommand()
 {
     data = new AddonSupportSolutionItemData(targetParser.Object, null, new Goal("test"));
     data.Target.Should().BeEmpty();
 }