public void AfterTest() { _triggerResponse.TestDestroy(); _triggerResponse = null; _spawner = null; }
public void BeforeTest() { _spawner = new GameObject().AddComponent <MockSpawnerComponent>(); _triggerResponse = _spawner.gameObject.AddComponent <TestSpawnerTriggerResponseComponent>(); _triggerResponse.TriggerObject = new GameObject(); _triggerResponse.TriggerObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake(); _triggerResponse.TestStart(); }