예제 #1
0
        public void ParseTest4()
        {
            var target = new CommentComponent();

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

            Assert.Throws <IncorrectSyntaxException>(() =>
                                                     target.Eval("")
                                                     );
        }
예제 #2
0
        public void ParseTest2()
        {
            var target = new CommentComponent();

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