Beispiel #1
0
 public void ReadDataTest()
 {
     using (MemoryStream stream = new MemoryStream())
         using (DjvuReader reader = new DjvuReader(stream))
         {
             UnknownChunk unk = new UnknownChunk(reader, null, null, null, 1024);
             unk.ReadData(reader);
             Assert.Equal <long>(1024, reader.Position);
         }
 }
Beispiel #2
0
 public void DataTest()
 {
     using (MemoryStream stream = new MemoryStream(4096))
         using (DjvuReader reader = new DjvuReader(stream))
         {
             UnknownChunk unk = new UnknownChunk(reader, null, null, null, 1024);
             unk.ReadData(reader);
             IDjvuReader r = unk.Data;
             Assert.Equal <long>(0, r.Position);
             Assert.NotSame(reader, r);
         }
 }