Skip to content

Commit

Permalink
Fix compilation errors from test code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaraskar committed Oct 4, 2024
1 parent a21b12f commit 205ef1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 205ef1f

Please sign in to comment.