Example #1
0
        public void TestPdf_ScrubberIdsMatch(string input)
        {
            var matchPositions = PdfScrubber.FindIds(input).ToList();

            Assert.AreEqual(2, matchPositions.Count);

            Assert.IsTrue(matchPositions.All(pos => input[pos.start - 1] == '<' && input[pos.start + pos.length] == '>'));
        }
Example #2
0
        public void TestPdf_ScrubberIdsNotMatch(string input)
        {
            var matchPositions = PdfScrubber.FindIds(input).ToList();

            Assert.AreEqual(0, matchPositions.Count);
        }