mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
26 lines
662 B
C#
26 lines
662 B
C#
using AssetRipper.SourceGenerated;
|
|
using AssetRipper.Tpk;
|
|
using AssetRipper.Tpk.EngineAssets;
|
|
using AssetRipper.Tpk.TypeTrees;
|
|
|
|
namespace AssetRipper.Tests;
|
|
|
|
internal class TpkTests
|
|
{
|
|
[Test]
|
|
public void EngineAssetsTpkSuccessfullyExtracts()
|
|
{
|
|
TpkFile tpk = TpkFile.FromStream(EngineAssetsTpk.GetStream());
|
|
TpkEngineAssetsBlob blob = (TpkEngineAssetsBlob)tpk.GetDataBlob();
|
|
Assert.That(blob.Data, Is.Not.Empty);
|
|
}
|
|
|
|
[Test]
|
|
public void TypeTreeTpkSuccessfullyExtracts()
|
|
{
|
|
TpkFile tpk = TpkFile.FromStream(SourceTpk.GetStream());
|
|
TpkTypeTreeBlob blob = (TpkTypeTreeBlob)tpk.GetDataBlob();
|
|
Assert.That(blob.ClassInformation, Is.Not.Empty);
|
|
}
|
|
}
|