public void AfterTest() { LocalisationManager.CurrentLocalisationInterface = null; _localisationComponent = null; _localisedText = null; }
public void BeforeTest() { var entries = new List <LocalisationDatabaseEntry> { new LocalisationDatabaseEntry(new LocalisationKey("BLAH", "OTHER BLAH"), new LocalisedTextEntries ( new List <LocalisedTextEntry> { new LocalisedTextEntry(ELanguageOptions.EnglishUK, "TRANSLATED TEXT"), new LocalisedTextEntry(ELanguageOptions.German, "OTHER TRANSLATED TEXT") } )), new LocalisationDatabaseEntry(new LocalisationKey("SECOND BLAH", "SECOND OTHER BLAH"), new LocalisedTextEntries ( new List <LocalisedTextEntry> { new LocalisedTextEntry(ELanguageOptions.EnglishUK, "SECOND TRANSLATED TEXT") } )) }; _localisedText = new LocalisedTextDatabase { LocalisedDatabase = entries }; _localisationComponent = new GameObject().AddComponent <TestLocalisationComponent>(); _localisationComponent.LocalisedDatabase = _localisedText; _localisationComponent.PlayerPrefsMock = new MockPlayerPrefsRepository(); }