Add tests for parsing achievement tags in chat
These tests ensure that `ChatManager.ParseMessage` will not throw on the server with TShock when given an achievement tag.
This commit is contained in:
parent
d0554abd46
commit
205c29bc88
2 changed files with 33 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using NUnit.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Initializers;
|
||||
using Terraria.Localization;
|
||||
using TShockAPI;
|
||||
|
||||
|
|
@ -15,6 +16,8 @@ public class TestSetup
|
|||
[OneTimeSetUp]
|
||||
public static void SetupTShock()
|
||||
{
|
||||
ChatInitializer.Load();
|
||||
|
||||
Program.SavePath = ""; // 1.4.4.2 staticness introduced this where by default it is null, and any touch to Terraria.Main will use it and cause a crash.
|
||||
LanguageManager.Instance.SetLanguage(GameCulture.DefaultCulture); // TShockAPI.Localization will fail without ActiveCulture set
|
||||
Lang.InitializeLegacyLocalization(); // TShockAPI.Localization will fail without preparing NPC names etc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue