Files
ParticleEffectForUGUI/Assets/Tests/Editor/NewTestScript.cs

32 lines
925 B
C#
Raw Normal View History

2024-01-23 23:17:57 +09:00
using System.Collections;
2025-12-24 20:10:01 +09:00
using Coffee.UIParticleInternal;
2023-11-21 09:27:50 +09:00
using NUnit.Framework;
2025-12-24 20:10:01 +09:00
using UnityEngine;
2023-11-21 09:27:50 +09:00
using UnityEngine.TestTools;
namespace Coffee.UIParticle.Editor.Tests
{
public class NewTestScript
{
2025-12-24 20:10:01 +09:00
[TestCase(-1)]
[TestCase(0)]
[TestCase(2048)]
[TestCase(3000)]
public void GetParticleArray(int requiredSize)
2023-11-21 09:27:50 +09:00
{
2025-12-24 20:10:01 +09:00
var array = ParticleSystemExtensions.GetParticleArray(requiredSize);
Debug.Log($"requiredSize: {requiredSize}, array.Length: {array.Length}");
2023-11-21 09:27:50 +09:00
}
// 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;
}
}
}