IOuterUnityTestAction.cs 690 B

12345678910111213141516171819
  1. using System.Collections;
  2. using NUnit.Framework.Interfaces;
  3. namespace UnityEngine.TestTools
  4. {
  5. /// <summary>
  6. /// When implemented by an attribute, this interface implemented to provide actions to execute before setup and after teardown of tests.
  7. /// </summary>
  8. public interface IOuterUnityTestAction
  9. {
  10. /// <summary>Executed before each test is run</summary>
  11. /// <param name="test">The test that is going to be run.</param>
  12. IEnumerator BeforeTest(ITest test);
  13. /// <summary>Executed after each test is run</summary>
  14. /// <param name="test">The test that has just been run.</param>
  15. IEnumerator AfterTest(ITest test);
  16. }
  17. }