Files
Test/Library/PackageCache/com.unity.test-framework@ee3fe9477490/UnityEngine.TestRunner/NUnitExtensions/Runner/IEnumerableTestMethodCommand.cs
T
2026-11-01 23:39:55 +02:00

20 lines
710 B
C#

using System;
using System.Collections;
using NUnit.Framework.Internal;
namespace UnityEngine.TestRunner.NUnitExtensions.Runner
{
/// <summary>
/// Implement this interface on a test command to support coroutine-style test execution.
/// </summary>
public interface IEnumerableTestMethodCommand
{
/// <summary>
/// Executes the test command as an enumerable, allowing for frame-by-frame execution.
/// </summary>
/// <param name="context">The test execution context.</param>
/// <returns>An enumerable that yields control back to the test runner between steps.</returns>
IEnumerable ExecuteEnumerable(ITestExecutionContext context);
}
}