public IEnumerator TestStartCoroutine() { GameObject gameObject = new GameObject(); TestComponent component = gameObject.AddComponent <TestComponent>(); bool complete = false; component.StartCoroutine(OneFrameCoroutine(), () => complete = true); yield return(null); yield return(null); Assert.IsTrue(complete); }