public void TestPartial() { var stream = new MemoryStream("abcdefg".Select(x => (byte)x).ToArray()); var find = PdfScrubber.Find("cdf", stream); Assert.AreEqual(-1, find); }
public void TestFound() { var stream = new MemoryStream("abcdefg".Select(x => (byte)x).ToArray()); long find = PdfScrubber.Find("cde", stream); Assert.AreEqual(2, find); }