コード例 #1
0
 public void stSolutionTest3()
 {
     BuildComponent target = new BuildComponent(Env);
     Assert.AreEqual(String.Empty, target.parse("[Build solution.NotExistProperty]"));
 }
コード例 #2
0
        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]")));
        }
コード例 #3
0
 public void stProjectConfTest2()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build projects.find(\"project1\").NotExist = true]");
 }
コード例 #4
0
 public void stProjectsTest2()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build projects.find(\"NotExist\").]");
 }
コード例 #5
0
 public void stProjectConfTest1()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build projects.find(\"project1\").IsBuildable = val]");
 }
コード例 #6
0
 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]"));
 }
コード例 #7
0
 public void isDeployableTest1()
 {
     BuildComponent target = new BuildComponent(Env);
     Assert.AreEqual(String.Empty, target.parse("[Build projects.find(\"project1\").IsDeployable = true]"));
 }
コード例 #8
0
 public void stTypeTest2()
 {
     BuildComponent target = new BuildComponent(Env);
     target.parse("[Build type = true]");
 }
コード例 #9
0
 public void stSolutionTest3()
 {
     BuildComponent target = new BuildComponent(Env);
     Assert.AreEqual(Value.Empty, target.parse("[Build solution.NotRealProperty]"));
 }