コード例 #1
0
        public void AfterTest()
        {
            _otherPower = null;
            _power      = null;

            _assign = null;
        }
コード例 #2
0
        public void BeforeTest()
        {
            _assign = new GameObject().AddComponent <TestPowerAssignmentComponent>();
            _assign.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();

            _power      = new GameObject().AddComponent <MockPowerComponent>();
            _otherPower = new GameObject().AddComponent <MockPowerComponent>();
        }