diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-07-07 11:44:18 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-07-07 11:44:18 -0400 |
commit | 053c0577eccef3db3397a935863af79b30a0282f (patch) | |
tree | 058b6afc8855c1e492b440ff36efd327586e0cd1 /src/StardewModdingAPI.Tests/Core | |
parent | f033b5a2f72b96168f6e20e96fa50742e70b01d6 (diff) | |
download | SMAPI-053c0577eccef3db3397a935863af79b30a0282f.tar.gz SMAPI-053c0577eccef3db3397a935863af79b30a0282f.tar.bz2 SMAPI-053c0577eccef3db3397a935863af79b30a0282f.zip |
add mod ID to mod helpers (#318)
Diffstat (limited to 'src/StardewModdingAPI.Tests/Core')
-rw-r--r-- | src/StardewModdingAPI.Tests/Core/TranslationTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI.Tests/Core/TranslationTests.cs b/src/StardewModdingAPI.Tests/Core/TranslationTests.cs index fceef0a3..8511e765 100644 --- a/src/StardewModdingAPI.Tests/Core/TranslationTests.cs +++ b/src/StardewModdingAPI.Tests/Core/TranslationTests.cs @@ -32,7 +32,7 @@ namespace StardewModdingAPI.Tests.Core var data = new Dictionary<string, IDictionary<string, string>>(); // act - ITranslationHelper helper = new TranslationHelper("ModName", "en", LocalizedContentManager.LanguageCode.en).SetTranslations(data); + ITranslationHelper helper = new TranslationHelper("ModID", "ModName", "en", LocalizedContentManager.LanguageCode.en).SetTranslations(data); Translation translation = helper.Get("key"); Translation[] translationList = helper.GetTranslations()?.ToArray(); @@ -55,7 +55,7 @@ namespace StardewModdingAPI.Tests.Core // act var actual = new Dictionary<string, Translation[]>(); - TranslationHelper helper = new TranslationHelper("ModName", "en", LocalizedContentManager.LanguageCode.en).SetTranslations(data); + TranslationHelper helper = new TranslationHelper("ModID", "ModName", "en", LocalizedContentManager.LanguageCode.en).SetTranslations(data); foreach (string locale in expected.Keys) { this.AssertSetLocale(helper, locale, LocalizedContentManager.LanguageCode.en); @@ -79,7 +79,7 @@ namespace StardewModdingAPI.Tests.Core // act var actual = new Dictionary<string, Translation[]>(); - TranslationHelper helper = new TranslationHelper("ModName", "en", LocalizedContentManager.LanguageCode.en).SetTranslations(data); + TranslationHelper helper = new TranslationHelper("ModID", "ModName", "en", LocalizedContentManager.LanguageCode.en).SetTranslations(data); foreach (string locale in expected.Keys) { this.AssertSetLocale(helper, locale, LocalizedContentManager.LanguageCode.en); |