RuntimeExampleTest.cs 524 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using UnityEngine.TestTools;
  3. using NUnit.Framework;
  4. using System.Collections;
  5. class RuntimeExampleTest {
  6. [Test]
  7. public void PlayModeSampleTestSimplePasses() {
  8. // Use the Assert class to test conditions.
  9. }
  10. // A UnityTest behaves like a coroutine in PlayMode
  11. // and allows you to yield null to skip a frame in EditMode
  12. [UnityTest]
  13. public IEnumerator PlayModeSampleTestWithEnumeratorPasses() {
  14. // Use the Assert class to test conditions.
  15. // yield to skip a frame
  16. yield return null;
  17. }
  18. }