Files
sharpcompress/tests/SharpCompress.Test/GZip/GZipArchiveDirectoryTests.cs
2026-01-15 11:41:30 +00:00

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)
);
}
}