public void AfterTest()
        {
            _vision.TestDestroy();

            _vision   = null;
            _detector = null;
        }
        public void BeforeTest()
        {
            _detector = new GameObject();
            _detector.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();

            var visionObject = new GameObject().AddComponent <PolygonCollider2D>();

            _vision = visionObject.gameObject.AddComponent <TestVisionComponent>();

            _vision.DetectingObject    = _detector;
            _vision.TimeUntilDetection = 1.5f;

            _vision.TestAwake();
        }