mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 04:26:33 -10:00
22 lines
680 B
C#
22 lines
680 B
C#
namespace Cpp2IL.Core.Tests;
|
|
|
|
public class DynamicWidthTests
|
|
{
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
Cpp2IlApi.ResetInternalState();
|
|
TestGameLoader.LoadSimpleV106Game();
|
|
}
|
|
|
|
[Test]
|
|
public void AssertTheGameLoadedProperly()
|
|
{
|
|
var context = Cpp2IlApi.CurrentAppContext!;
|
|
|
|
//Yes, this is really dumb and stupid as a test. But it does actually test that the dynamic-width impl is correct (or we'd throw in setup)
|
|
//and we can't actually check the calculation easily from here, because the index widths are only configured while actively loading the metadata.
|
|
Assert.That(context, Is.Not.Null);
|
|
}
|
|
}
|