diff --git a/src/iTextSharp.LGPLv2.Core.FunctionalTests/XmlITextTests.cs b/src/iTextSharp.LGPLv2.Core.FunctionalTests/XmlITextTests.cs index bb456da..f5eca67 100644 --- a/src/iTextSharp.LGPLv2.Core.FunctionalTests/XmlITextTests.cs +++ b/src/iTextSharp.LGPLv2.Core.FunctionalTests/XmlITextTests.cs @@ -7,19 +7,19 @@ namespace iTextSharp.LGPLv2.Core.FunctionalTests { - [TestClass] - public class XmlITextTests - { - /// - /// iTextXML can be used as a report generator - /// - [TestMethod] - public void Verify_iTextXML_To_PDF_File_CanBeCreated() - { - var img = Path.Combine(TestUtils.GetBaseDir(), @"iTextExamples\resources\img", "hitchcock.png"); - var iTextXML = $@" + [TestClass] + public class XmlITextTests + { + /// + /// iTextXML can be used as a report generator + /// + [TestMethod] + public void Verify_iTextXML_To_PDF_File_CanBeCreated() + { + var img = Path.Combine(TestUtils.GetBaseDir(), @"iTextExamples", "resources", "img", "hitchcock.png"); + var iTextXML = $@" - + iText XML Sample @@ -48,20 +48,20 @@ My blog "; - var pdfFilePath = TestUtils.GetOutputFileName(); - converITextXmlToPdfFile(iTextXML, pdfFilePath); - TestUtils.VerifyPdfFileIsReadable(pdfFilePath); - } + var pdfFilePath = TestUtils.GetOutputFileName(); + converITextXmlToPdfFile(iTextXML, pdfFilePath); + TestUtils.VerifyPdfFileIsReadable(pdfFilePath); + } - [TestMethod] - public void Verify_iTextXML_CanBeParsed() - { - var img = Path.Combine(TestUtils.GetBaseDir(), @"iTextExamples\resources\img", "hitchcock.png"); - var iTextXML = $@" + [TestMethod] + public void Verify_iTextXML_CanBeParsed() + { + var img = Path.Combine(TestUtils.GetBaseDir(), @"iTextExamples", "resources", "img", "hitchcock.png"); + var iTextXML = $@" - Please visit my + Please visit my website (external reference) @@ -1978,31 +1978,31 @@ blah blah blah blah blah blah blah blah blah blah blah blah "; - var pdfFilePath = TestUtils.GetOutputFileName(); - converITextXmlToPdfFile(iTextXML, pdfFilePath); - TestUtils.VerifyPdfFileIsReadable(pdfFilePath); - } + var pdfFilePath = TestUtils.GetOutputFileName(); + converITextXmlToPdfFile(iTextXML, pdfFilePath); + TestUtils.VerifyPdfFileIsReadable(pdfFilePath); + } - private static void converITextXmlToPdfFile(string iTextXML, string pdfFilePath) - { - var fileStream = new FileStream(pdfFilePath, FileMode.Create); + private static void converITextXmlToPdfFile(string iTextXML, string pdfFilePath) + { + var fileStream = new FileStream(pdfFilePath, FileMode.Create); - var document = new Document(); - var pdfWriter = PdfWriter.GetInstance(document, fileStream); + var document = new Document(); + var pdfWriter = PdfWriter.GetInstance(document, fileStream); - document.AddAuthor(TestUtils.Author); - document.Open(); + document.AddAuthor(TestUtils.Author); + document.Open(); - var xmlReader = XmlReader.Create(new StringReader(iTextXML)); + var xmlReader = XmlReader.Create(new StringReader(iTextXML)); - var parser = new XmlParser(); - parser.Go(document, xmlReader); + var parser = new XmlParser(); + parser.Go(document, xmlReader); - pdfWriter.Close(); - document.Close(); - fileStream.Dispose(); - xmlReader.Dispose(); - } - } + pdfWriter.Close(); + document.Close(); + fileStream.Dispose(); + xmlReader.Dispose(); + } + } }