public void AfterTest()
        {
            LocalisationManager.CurrentLocalisationInterface = null;
            _localisation = null;

            _hud.TestDestroy();

            _secondLine = null;
            _firstLine  = null;

            _hud = null;
        }
        public void BeforeTest()
        {
            _hud = new GameObject().AddComponent <TestDialogueHUDComponent>();

            _hud.DispatcherOverride    = new UnityMessageEventDispatcher();
            _hud.DisplayedDialogueText = new GameObject().AddComponent <Text>();
            _hud.NameText      = new GameObject().AddComponent <Text>();
            _hud.PortraitImage = new GameObject().AddComponent <Image>();

            _firstDelegateCalled  = false;
            _secondDelegateCalled = false;

            _firstLine = new DialogueLineEntry
            {
                DialogueKey   = new LocalisationKey("FirstNameSpace", "FirstKey"),
                NameKey       = new LocalisationKey("FirstNameySpace", "FirstKey"),
                DialogueSpeed = 2.0f,
                Portrait      = Resources.Load <Sprite>(SpritePath),
                TalkNoise     = new AudioClip()
            };

            _secondLine = new DialogueLineEntry
            {
                DialogueKey   = new LocalisationKey("SecondNameSpace", "SecondKey"),
                NameKey       = new LocalisationKey("SecondNameySpace", "SecondKey"),
                DialogueSpeed = 2.0f,
                Portrait      = Resources.Load <Sprite>(SecondSpritePath),
                TalkNoise     = new AudioClip()
            };

            _localisation = new MockLocalisationInterface();
            _localisation.GetTextForLocalisationKeyResult = new LocalisedText
                                                            (
                new LocalisedTextEntries
                (
                    new List <LocalisedTextEntry>
            {
                new LocalisedTextEntry
                    (ELanguageOptions.EnglishUK, FirstText)
            }
                )
                                                            );

            LocalisationManager.CurrentLocalisationInterface = _localisation;

            _hud.TestStart();
        }