예제 #1
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]"));
        }
예제 #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 stSolutionTest3()
        {
            BuildComponent target = new BuildComponent(Env);

            Assert.AreEqual(Value.Empty, target.parse("[Build solution.NotRealProperty]"));
        }
예제 #4
0
        public void isDeployableTest1()
        {
            BuildComponent target = new BuildComponent(Env);

            Assert.AreEqual(Value.Empty, target.parse("[Build projects.find(\"project1\").IsDeployable = true]"));
        }
예제 #5
0
        public void stProjectConfTest2()
        {
            BuildComponent target = new BuildComponent(Env);

            target.parse("[Build projects.find(\"project1\").NotExist = true]");
        }
예제 #6
0
        public void stProjectConfTest1()
        {
            BuildComponent target = new BuildComponent(Env);

            target.parse("[Build projects.find(\"project1\").IsBuildable = val]");
        }
예제 #7
0
        public void stProjectsTest2()
        {
            BuildComponent target = new BuildComponent(Env);

            target.parse("[Build projects.find(\"NotExist\").]");
        }
예제 #8
0
        public void stTypeTest2()
        {
            BuildComponent target = new BuildComponent(Env);

            target.parse("[Build type = true]");
        }