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

            Assert.Throws <IncorrectSyntaxException>(() =>
                                                     target.Eval("test")
                                                     );

            Assert.Throws <IncorrectSyntaxException>(() =>
                                                     target.Eval("")
                                                     );
        }
Exemplo n.º 2
0
        public void ParseTest2()
        {
            var target = new CommentComponent();

            Assert.Equal(Value.Empty, target.Eval("[\"line1 \n line2\"]"));
        }