Skip to content

Commit 01e3cb2

Browse files
committed
Update autoported files
5d6d8c292fa407f470bd18249ecc7dca89f95048
1 parent 7647d08 commit 01e3cb2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

itext.tests/itext.io.tests/itext/io/image/TiffTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public virtual void OpenTiff6() {
107107

108108
[NUnit.Framework.Test]
109109
public virtual void GetStringDataFromTiff() {
110-
byte[] bytes = System.IO.File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, "img_cmyk.tif"));
110+
byte[] bytes = File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, "img_cmyk.tif"));
111111
TIFFDirectory dir = new TIFFDirectory(new RandomAccessFileOrArray(new RandomAccessSourceFactory().CreateSource
112112
(bytes)), 0);
113113
String[] stringArray = new String[] { "iText? 7.1.7-SNAPSHOT ?2000-2019 iText Group NV (AGPL-version)\u0000"

itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/parser/InlineImageExtractionTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public virtual void ExtractSingleInlineImageWithIndexedColorSpaceTest() {
5656
IList<PdfStream> inlineImages = eventListener.GetInlineImages();
5757
NUnit.Framework.Assert.AreEqual(1, inlineImages.Count);
5858
byte[] imgBytes = inlineImages[0].GetBytes();
59-
byte[] cmpImgBytes = System.IO.File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, "imgtest.dat"));
59+
byte[] cmpImgBytes = File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, "imgtest.dat"));
6060
NUnit.Framework.Assert.AreEqual(cmpImgBytes, imgBytes);
6161
PdfDictionary expectedDict = new PdfDictionary();
6262
expectedDict.Put(PdfName.BitsPerComponent, new PdfNumber(8));
@@ -92,8 +92,8 @@ public virtual void ParseInlineImageTest() {
9292
new PdfCanvasProcessor(listener).ProcessPageContent(pdfDocument.GetFirstPage());
9393
IList<PdfStream> inlineImages = listener.GetInlineImages();
9494
byte[] data = new PdfImageXObject(inlineImages[0]).GetImageBytes();
95-
byte[] cmpImgBytes = System.IO.File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, "docWithInlineImageBytes.dat"
96-
));
95+
byte[] cmpImgBytes = File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, "docWithInlineImageBytes.dat")
96+
);
9797
NUnit.Framework.Assert.AreEqual(cmpImgBytes, data);
9898
}
9999

itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/parser/PdfCanvasProcessorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public virtual void ContentStreamProcessorTest() {
7070
(pageEventsLog));
7171
processor.ProcessPageContent(page);
7272
}
73-
byte[] logBytes = System.IO.File.ReadAllBytes(System.IO.Path.Combine(sourceFolder + "contentStreamProcessorTest_events_log.dat"
73+
byte[] logBytes = File.ReadAllBytes(System.IO.Path.Combine(sourceFolder + "contentStreamProcessorTest_events_log.dat"
7474
));
7575
String expectedPageEventsLog = iText.IO.Util.JavaUtil.GetStringForBytes(logBytes, System.Text.Encoding.UTF8
7676
);

itext.tests/itext.kernel.tests/itext/kernel/pdf/xobject/GetImageBytesTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ private void TestFile(String filename, String objectid, String expectedImageForm
221221
).GetRefersTo() : obj));
222222
NUnit.Framework.Assert.AreEqual(expectedImageFormat, img.IdentifyImageFileExtension());
223223
byte[] result = img.GetImageBytes(true);
224-
byte[] cmpBytes = System.IO.File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, filename.JSubstring(0,
225-
filename.Length - 4) + "." + expectedImageFormat));
224+
byte[] cmpBytes = File.ReadAllBytes(System.IO.Path.Combine(sourceFolder, filename.JSubstring(0, filename.Length
225+
- 4) + "." + expectedImageFormat));
226226
if (img.IdentifyImageFileExtension().Equals("tif")) {
227227
CompareTiffImages(cmpBytes, result);
228228
}

itext.tests/itext.layout.tests/itext/layout/LocationTextExtractionStrategyTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public virtual void TestType3FontWithDifferences() {
186186
PdfDictionary pdfType3FontDict = (PdfDictionary)pdf.GetPdfObject(292);
187187
PdfType3Font pdfType3Font = (PdfType3Font)PdfFontFactory.CreateFont(pdfType3FontDict);
188188
pdf.Close();
189-
byte[] bytes = System.IO.File.ReadAllBytes(System.IO.Path.Combine(comparedTextFile));
189+
byte[] bytes = File.ReadAllBytes(System.IO.Path.Combine(comparedTextFile));
190190
NUnit.Framework.Assert.AreEqual(iText.IO.Util.JavaUtil.GetStringForBytes(bytes, System.Text.Encoding.UTF8)
191191
, result);
192192
NUnit.Framework.Assert.AreEqual(83, pdfType3Font.GetNumberOfGlyphs());

0 commit comments

Comments
 (0)