-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I would dearly love a way to test game objects under the MonoBehaviour events (Start, Update), and this would be possible if we could use Coroutines within the unit tests themselves, in particular to delay a frame or period of time, to allow GameObjects to receive their events.
The current way we are doing it is "faking" the calls by using Reflection to call Start() and Update() on game objects to allow them to respond. However, this only works on single game objects that don't use many unity core features (such as Animations, etc).
My question is, how could we add Coroutine support to NUnitLite? I suppose each test would have to be an IEnumerator, or StartCoroutine on one.
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels