missing test mode interface, please add option for testing archives
deltaone opened this issue · 2 comments
deltaone commented
find only extract
public void Extract(string directory, IProgress progress)
{
using (var cb = Create(directory, progress))
{
_module.Extract(null, uint.MaxValue, 0, cb);
Terminate(cb.Result, cb.Exception);
}
}
_module.Extract(null, uint.MaxValue, 0, cb);
===>
test flag always is zero
Changing 0 to 1 throwing exception ;(
clown commented
OK, I'll add an interface for testing.
clown commented
I added the following methods. ArchiveReader and ArchiveItem run in test mode when you omit the directory path.
ArchiveReader.Extract();
ArchiveReader.Extract(IProgress<Report> progress);
ArchiveItem.Extract();
ArchiveItem.Extract(IProgress<Report> progress);