Example #1
0
        public void RemoveCommentBlocksTest_2()
        {
            var loc   = new Loc();
            var lines = new[] { "/* Ko", "12345", "ar*/" };

            CollectionAssert.AreEqual(new string[0], BlockComments.RemoveCommentBlocks(lines).ToArray());
        }
Example #2
0
        public void RemoveCommentBlocksTest_4()
        {
            var loc   = new Loc();
            var lines = new[] { " Kommentar */ var g = 2;" };

            CollectionAssert.AreEqual(new[] { " Kommentar */ var g = 2;" }, BlockComments.RemoveCommentBlocks(lines).ToArray());
        }
Example #3
0
        public void RemoveCommentBlocksTest_0()
        {
            var loc   = new Loc();
            var lines = new[] { "var a = 2;  /* Ko", "12345", "ar*/ var g = 2;" };

            CollectionAssert.AreEqual(new[] { "var a = 2;  /* Ko", "ar*/ var g = 2;" }, BlockComments.RemoveCommentBlocks(lines).ToArray());
        }