Пример #1
0
        public void TestCommentBlock()
        {
            InputString comment = "/* Comment */";
            InputString nested  = "/* comment /* nested comment */*/";
            InputString none    = "Doggie";

            Assert.AreEqual(" Comment ", Comment.Block()(comment).Value);
            Assert.AreEqual(" comment /* nested comment ", Comment.Block()(nested).Value);
            Assert.AreEqual(false, Comment.Block()(none).HasValue);
        }