2024-01-23 22:17:57 +08:00
|
|
|
using System.Collections;
|
2023-11-21 08:27:50 +08:00
|
|
|
using NUnit.Framework;
|
|
|
|
using UnityEngine.TestTools;
|
|
|
|
|
|
|
|
namespace Coffee.UIParticle.Tests
|
|
|
|
{
|
|
|
|
public class NewTestScript
|
|
|
|
{
|
|
|
|
// A Test behaves as an ordinary method
|
|
|
|
[Test]
|
|
|
|
public void NewTestScriptSimplePasses()
|
|
|
|
{
|
|
|
|
// Use the Assert class to test conditions
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 NewTestScriptWithEnumeratorPasses()
|
|
|
|
{
|
|
|
|
// Use the Assert class to test conditions.
|
|
|
|
// Use yield to skip a frame.
|
|
|
|
yield return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|