mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-14 13:35:38 +00:00
20 lines
528 B
C#
20 lines
528 B
C#
using System;
|
|
using System.IO;
|
|
using SharpCompress.Common;
|
|
using SharpCompress.Writers.GZip;
|
|
using Xunit;
|
|
|
|
namespace SharpCompress.Test.GZip;
|
|
|
|
public class GZipWriterDirectoryTests : TestBase
|
|
{
|
|
[Fact]
|
|
public void GZipWriter_WriteDirectory_ThrowsNotSupportedException()
|
|
{
|
|
using var memoryStream = new MemoryStream();
|
|
using var writer = new GZipWriter(memoryStream, new GZipWriterOptions());
|
|
|
|
Assert.Throws<NotSupportedException>(() => writer.WriteDirectory("test-dir", DateTime.Now));
|
|
}
|
|
}
|