public IEnumerator TestStartCoroutineAction() { GameObject gameObject = new GameObject(); TestComponent component = gameObject.AddComponent <TestComponent>(); bool complete = false; component.StartCoroutineAction(0.1f, () => complete = true); yield return(new WaitForSeconds(0.2f)); Assert.IsTrue(complete); }