private void CreateInvalidWriterType(ArchiveFactory.Type type) { using (MemoryStream ms = new MemoryStream()) { ArchiveFactory.Writer(type, ms); } }
public TarPackage(string path) : base(path) { var extension = Path.GetExtension(PackageSourceFile); if (string.Compare(extension, ".gz", true) == 0) { _tarType = ArchiveFactory.Type.TarGz; } else if (string.Compare(extension, ".bz2", true) == 0) { _tarType = ArchiveFactory.Type.TarBz2; } }