예제 #1
0
        public void AfterTest()
        {
            _triggerResponse.TestDestroy();

            _triggerResponse = null;
            _spawner         = null;
        }
예제 #2
0
        public void BeforeTest()
        {
            _spawner         = new GameObject().AddComponent <MockSpawnerComponent>();
            _triggerResponse = _spawner.gameObject.AddComponent <TestSpawnerTriggerResponseComponent>();

            _triggerResponse.TriggerObject = new GameObject();
            _triggerResponse.TriggerObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();

            _triggerResponse.TestStart();
        }