mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Globalisation Changes
This commit is contained in:
parent
4a80b089b4
commit
034d7401d1
15 changed files with 410 additions and 51 deletions
|
|
@ -305,6 +305,32 @@ namespace Plugin.Discord.UnitTests
|
|||
Assert.IsTrue(true);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DiscordPlugin_OpenConfigForm_WithDifferentLanguage()
|
||||
{
|
||||
// Arrange
|
||||
ServerManagerTool.Plugin.Common.PluginHelper.Instance.SetFetchProfileCallback(FetchProfiles);
|
||||
|
||||
var plugin = new DiscordPlugin();
|
||||
plugin.BetaEnabled = true;
|
||||
plugin.Initialize();
|
||||
|
||||
// Act
|
||||
plugin.OpenConfigForm(null);
|
||||
|
||||
// Assert
|
||||
Assert.IsTrue(true);
|
||||
|
||||
// Arrange
|
||||
ServerManagerTool.Plugin.Common.PluginHelper.Instance.OnResourceDictionaryChanged("zh-CN");
|
||||
|
||||
// Act
|
||||
plugin.OpenConfigForm(null);
|
||||
|
||||
// Assert
|
||||
Assert.IsTrue(true);
|
||||
}
|
||||
|
||||
private IList<Profile> FetchProfiles()
|
||||
{
|
||||
return new List<Profile>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue