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

            _text = null;

            _toast = null;
        }
        public void BeforeTest()
        {
            var hudObject = new GameObject();

            hudObject.AddComponent <AudioSource>();
            _toast = hudObject.AddComponent <TestToastNotificationHUDComponent>();

            _text = new GameObject().AddComponent <Text>();

            _toast.DisplayText         = _text;
            _toast.TimePerNotification = 2.0f;
            _toast.TestStart();
        }