Quantcast
Channel: Questions in topic: "unit"
Viewing all articles
Browse latest Browse all 68

Is there a way to ensure Awake is called in Unit tests?

$
0
0
I have been using the [Unity Test Tools][1] but I am having an issue where I am creating a gameObject in the test script, attaching a component that I want to test, but Awake is not being called. Is there any way to ensure Awake gets called when the component is added via my test script? I really don't want to muddy up my component and add a public method that calls Awake or anything. Thank you! [1]: https://www.assetstore.unity3d.com/#/content/13802

Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>