mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
Add TpkTests
This commit is contained in:
parent
a73aeb39e1
commit
8ed547204c
25
Source/AssetRipper.Tests/TpkTests.cs
Normal file
25
Source/AssetRipper.Tests/TpkTests.cs
Normal file
@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user