mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Language file update
This commit is contained in:
parent
d108d84d8f
commit
0156b10869
4 changed files with 51 additions and 13 deletions
|
|
@ -306,7 +306,7 @@ namespace Plugin.Discord.UnitTests
|
|||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DiscordPlugin_OpenConfigForm_WithDifferentLanguage()
|
||||
public void DiscordPlugin_OpenConfigForm_SwitchingLanguages()
|
||||
{
|
||||
// Arrange
|
||||
ServerManagerTool.Plugin.Common.PluginHelper.Instance.SetFetchProfileCallback(FetchProfiles);
|
||||
|
|
@ -331,6 +331,23 @@ namespace Plugin.Discord.UnitTests
|
|||
Assert.IsTrue(true);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DiscordPlugin_OpenConfigForm_WithDifferentLanguage()
|
||||
{
|
||||
// Arrange
|
||||
ServerManagerTool.Plugin.Common.PluginHelper.Instance.OnResourceDictionaryChanged("pt-BR");
|
||||
|
||||
var plugin = new DiscordPlugin();
|
||||
plugin.BetaEnabled = true;
|
||||
plugin.Initialize();
|
||||
|
||||
// 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