Files
Matt Nadareski d614379cf5 Libraries
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.IO.Meta` builds the normal Nuget package that is used by all other projects and includes all namespaces. `SabreTools.IO` builds to `SabreTools.IO.Common` to avoid overwriting issues on publish.
2026-03-21 13:55:42 -04:00

31 lines
1.0 KiB
C#

using System;
using System.IO;
using SabreTools.IO.Compression.Quantum;
using Xunit;
#pragma warning disable CA1822 // Mark members as static
namespace SabreTools.IO.Compression.Test
{
public class QuantumTests
{
// This test is disabled for the forseeable future. The current Quantum
// processing code only handles standalone Quantum archives in theory.
// There is additional work that needs to be done to support MS-CAB padding
// before this test will pass properly.
//[Fact]
public void DecompressorTest()
{
// Testing Note: This is a fake file that has been taken
// from the CFDATA block of a cabinet file.
string path = Path.Combine(Environment.CurrentDirectory, "TestData", "test-archive.qtm");
byte[] inputBytes = File.ReadAllBytes(path);
var decompressor = Decompressor.Create(inputBytes, 19);
byte[] output = decompressor.Process();
Assert.Equal(38470, output.Length);
}
}
}