StellarXipher/Library/PackageCache/com.unity.test-framework@0a21eb82d95c/UnityEngine.TestRunner/NUnitExtensions/Commands/UnityTestMethodCommand.cs
2025-02-06 16:45:46 -05:00

20 lines
518 B
C#

using System;
using NUnit.Framework.Internal;
using NUnit.Framework.Internal.Commands;
using Unity.Profiling;
namespace UnityEngine.TestTools
{
internal class UnityTestMethodCommand : TestMethodCommand
{
public UnityTestMethodCommand(TestMethod testMethod)
: base(testMethod) {}
public override TestResult Execute(ITestExecutionContext context)
{
using (new ProfilerMarker(Test.FullName).Auto())
return base.Execute(context);
}
}
}