mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-22 08:11:47 -05:00
Fix compilation errors from test code changes
This commit is contained in:
parent
a21b12ffd4
commit
205ef1f9b4
3 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue