Exemplo n.º 1
0
        public void StCancelTest4()
        {
            var target = new BuildComponentAcs();

            Assert.Throws <IncorrectSyntaxException>(() =>
                                                     target.Eval("[Build cancel = 1true]")
                                                     );
        }
Exemplo n.º 2
0
        public void StSolutionTest2()
        {
            var target = new BuildComponentAcs();

            Assert.Throws <ArgumentException>(() =>
                                              Assert.Equal(Value.Empty, target.Eval("[Build solution.path()]"))
                                              );
        }
Exemplo n.º 3
0
        public void ParseTest()
        {
            var target = new BuildComponentAcs();

            Assert.Throws <SubtypeNotFoundException>(() =>
                                                     target.Eval("[Build UnitTestChecking = true]")
                                                     );
        }
Exemplo n.º 4
0
        public void StProjectsTest1()
        {
            var target = new BuildComponentAcs();

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[Build projects.find(name)]")
                                             );
        }
Exemplo n.º 5
0
        public void StCancelTest3()
        {
            var target = new BuildComponentAcs();

            Assert.Equal(Value.Empty, target.Eval("[Build cancel = true]"));
            Assert.Equal(Value.Empty, target.Eval("[Build cancel = 1]"));
            Assert.Equal(Value.Empty, target.Eval("[Build cancel = false]"));
            Assert.Equal(Value.Empty, target.Eval("[Build cancel = 0]"));
            Assert.Equal(Value.Empty, target.Eval("[Build cancel = true ] "));
        }
Exemplo n.º 6
0
        public void StCancelTest5()
        {
            var target = new BuildComponentAcs();

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[Build cancel]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[Build cancel : true]")
                                                   );
        }