Skip to content

Instantly share code, notes, and snippets.

@miparnisari
Created April 6, 2018 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miparnisari/11bb57e343cef47fbb4737afa35dcec8 to your computer and use it in GitHub Desktop.
Save miparnisari/11bb57e343cef47fbb4737afa35dcec8 to your computer and use it in GitHub Desktop.
using NUnit.Framework;
using System.Collections;
using UnityEngine.TestTools;
public class NewEditModeTest {
// A UnityTest behaves like a coroutine in PlayMode
// and allows you to yield null to skip a frame in EditMode
[UnityTest]
public IEnumerator NewEditModeTestWithEnumeratorPasses() {
// Use the Assert class to test conditions.
// yield to skip a frame
var tts = new TextToSpeech();
var resp = tts.RequestToken();
yield return resp;
Assert.AreEqual(true,true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment