public void Normalize() { NormDocument ndoc; int count = 0; Type etype = Type.GetType ("Scielo.PDF2Text.RawDocument"); Type etype1 = Type.GetType ("Scielo.PDF2Text.NormDocument"); foreach (PDFPoppler doc in test_docs) { RawDocument rdoc = new RawDocument (doc); ndoc= rdoc.Normalize (styles[count]); Assert.IsInstanceOfType (etype, rdoc, "NM" + count); Assert.IsInstanceOfType (etype1, ndoc, "NM" + count); count++; } }
public void GetText() { string normtext; int count = 0; NormDocument ndoc; foreach (PDFPoppler doc in test_docs) { RawDocument rdoc = new RawDocument (doc); ndoc = rdoc.Normalize (styles [count]); normtext = ndoc.GetText (); Assert.AreEqual (norm_docs[count], normtext, "GT" + count); count += 1; } }