From 54cd0ae516f5a3ebd42beb7f65704b3049c321f1 Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Thu, 8 Aug 2019 23:14:59 +0100 Subject: [PATCH] Extend the ArrayAndStreamBehaveTheSame test to test seeking back to the start --- src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs b/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs index 18a1666b..e94f7007 100644 --- a/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs +++ b/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs @@ -64,6 +64,12 @@ Assert.True(stream.IsAtEnd()); Assert.True(array.IsAtEnd()); + + stream.Seek(0); + array.Seek(0); + + Assert.False(stream.IsAtEnd()); + Assert.False(array.IsAtEnd()); } } }