KopMap/Assets/MindPowerSdk.Tests/lwModelObjTests.cs

37 lines
984 B
C#
Raw Normal View History

2025-04-03 02:30:16 +08:00
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
namespace MindPowerSdk.Tests
{
public class lwModelObjTests
{
public const string dir = @"D:\项目\海盗王\138原版一键端\海盗王Online";
[SetUp]
public void Init()
{
GlobalDefine.ClientDir = dir;
}
// A Test behaves as an ordinary method
[Test]
public void TestLoad()
{
lwModelObjInfo objInfo = new();
objInfo.Load("model/scene/bl-bd008-01.lmo");
}
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
// `yield return null;` to skip a frame.
[UnityTest]
public IEnumerator TestWithEnumeratorPasses()
{
// Use the Assert class to test conditions.
// Use yield to skip a frame.
yield return null;
}
}
}