mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-23 06:29:40 +00:00
20 lines
453 B
C#
20 lines
453 B
C#
using System;
|
|
using System.IO;
|
|
using SharpCompress.Archives.GZip;
|
|
using Xunit;
|
|
|
|
namespace SharpCompress.Test.GZip;
|
|
|
|
public class GZipArchiveDirectoryTests : TestBase
|
|
{
|
|
[Fact]
|
|
public void GZipArchive_AddDirectoryEntry_ThrowsNotSupportedException()
|
|
{
|
|
using var archive = GZipArchive.CreateArchive();
|
|
|
|
Assert.Throws<NotSupportedException>(() =>
|
|
archive.AddDirectoryEntry("test-dir", DateTime.Now)
|
|
);
|
|
}
|
|
}
|