Fix compilation errors from test code changes

This commit is contained in:
Ammar Askar 2024-10-03 23:58:08 -04:00
parent a21b12ffd4
commit 205ef1f9b4
3 changed files with 9 additions and 9 deletions

View file

@ -11,14 +11,14 @@ public class ObjectModuleCodecTest
[SetUp]
public void SetUp()
{
TestMain.Initialize();
_groupID = ContentProvider.Get().AddPackage("TestAssets/Codecs/ObjCodecs.package").GroupID;
TestCore.Initialize();
_groupID = ContentManager.Instance.AddPackage("TestAssets/Codecs/ObjCodecs.package").GroupID;
}
[Test]
public void TestSuccessfullyLoadsObjectModule()
{
var objectModuleAsset = ContentProvider.Get()
var objectModuleAsset = ContentManager.Instance
.GetAsset<ObjectModuleAsset>(new ResourceKey(0x1, _groupID, TypeIDs.OBJM));
Assert.That(objectModuleAsset, Is.Not.Null);

View file

@ -11,14 +11,14 @@ public class ObjectSaveTypeTableCodecTest
[SetUp]
public void SetUp()
{
TestMain.Initialize();
_groupID = ContentProvider.Get().AddPackage("TestAssets/Codecs/ObjCodecs.package").GroupID;
TestCore.Initialize();
_groupID = ContentManager.Instance.AddPackage("TestAssets/Codecs/ObjCodecs.package").GroupID;
}
[Test]
public void TestSuccessfullyLoadsSaveTypeTable()
{
var tableAsset = ContentProvider.Get()
var tableAsset = ContentManager.Instance
.GetAsset<ObjectSaveTypeTableAsset>(new ResourceKey(0x0, _groupID, TypeIDs.OBJ_SAVE_TYPE_TABLE));
Assert.That(tableAsset, Is.Not.Null);

View file

@ -12,14 +12,14 @@ public class SimsObjectCodecTest
[SetUp]
public void SetUp()
{
TestMain.Initialize();
_groupID = ContentProvider.Get().AddPackage("TestAssets/Codecs/ObjCodecs.package").GroupID;
TestCore.Initialize();
_groupID = ContentManager.Instance.AddPackage("TestAssets/Codecs/ObjCodecs.package").GroupID;
}
[Test]
public void TestSuccessfullyLoadsSimsObject()
{
var objectAsset = ContentProvider.Get().GetAsset<SimsObjectAsset>(new ResourceKey(0x158, _groupID, TypeIDs.XOBJ));
var objectAsset = ContentManager.Instance.GetAsset<SimsObjectAsset>(new ResourceKey(0x158, _groupID, TypeIDs.XOBJ));
Assert.That(objectAsset, Is.Not.Null);
}