public void stSolutionTest3()
 {
     BuildComponent target = new BuildComponent(Env);
     Assert.AreEqual(String.Empty, target.parse("[Build solution.NotExistProperty]"));
 }
        public void stTypeTest1()
        {
            IEnvironment _env       = new Environment((DTE2)(new Mock<DTE2>()).Object);
            BuildComponent target   = new BuildComponent(_env);

            Assert.AreEqual(BuildType.Common.ToString(), target.parse("[Build type]"));

            _env.BuildType = BuildType.Compile;
            Assert.AreEqual(BuildType.Compile.ToString(), target.parse("[Build type]"));

            _env.BuildType = BuildType.Clean;
            Assert.AreEqual(BuildType.Clean, (BuildType)Enum.Parse(typeof(BuildType), target.parse("[Build type]")));
        }
 public void stProjectsTest2()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build projects.find(\"NotExist\").]");
 }
 public void stProjectConfTest2()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build projects.find(\"project1\").NotExist = true]");
 }
 public void stProjectConfTest1()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build projects.find(\"project1\").IsBuildable = val]");
 }
 public void isDeployableTest2()
 {
     BuildComponent target = new BuildComponent(Env);
     Assert.AreEqual("true", target.parse("[Build projects.find(\"project1\").IsDeployable]"));
     Assert.AreEqual("false", target.parse("[Build projects.find(\"project2\").IsDeployable]"));
 }
 public void isDeployableTest1()
 {
     BuildComponent target = new BuildComponent(Env);
     Assert.AreEqual(String.Empty, target.parse("[Build projects.find(\"project1\").IsDeployable = true]"));
 }