UnityTestMethodCommand.cs 522 B

12345678910111213141516171819
  1. using System;
  2. using NUnit.Framework.Internal;
  3. using NUnit.Framework.Internal.Commands;
  4. using Unity.Profiling;
  5. namespace UnityEngine.TestTools
  6. {
  7. internal class UnityTestMethodCommand : TestMethodCommand
  8. {
  9. public UnityTestMethodCommand(TestMethod testMethod)
  10. : base(testMethod) { }
  11. public override TestResult Execute(ITestExecutionContext context)
  12. {
  13. using (new ProfilerMarker(Test.FullName).Auto())
  14. return base.Execute(context);
  15. }
  16. }
  17. }