Getting remaining Tests on stylecop (#5846)

This commit is contained in:
Clint Rutkas
2020-08-10 15:49:36 -07:00
committed by GitHub
parent 7bfd0823db
commit 082a78bd92
12 changed files with 117 additions and 170 deletions

View File

@@ -16,7 +16,7 @@ namespace Wox.Test
{
var nonGlobalPlugins = new Dictionary<string, PluginPair>
{
{ ">", new PluginPair { Metadata = new PluginMetadata { ActionKeywords = new List<string> { ">" } } } }
{ ">", new PluginPair { Metadata = new PluginMetadata { ActionKeywords = new List<string> { ">" } } } },
};
Query q = QueryBuilder.Build("> file.txt file2 file3", nonGlobalPlugins);
@@ -30,7 +30,7 @@ namespace Wox.Test
{
var nonGlobalPlugins = new Dictionary<string, PluginPair>
{
{ ">", new PluginPair { Metadata = new PluginMetadata { ActionKeywords = new List<string> { ">" }, Disabled = true } } }
{ ">", new PluginPair { Metadata = new PluginMetadata { ActionKeywords = new List<string> { ">" }, Disabled = true } } },
};
Query q = QueryBuilder.Build("> file.txt file2 file3", nonGlobalPlugins);
@@ -44,7 +44,7 @@ namespace Wox.Test
Query q = QueryBuilder.Build("file.txt file2 file3", new Dictionary<string, PluginPair>());
Assert.AreEqual("file.txt file2 file3", q.Search);
Assert.AreEqual("", q.ActionKeyword);
Assert.AreEqual(string.Empty, q.ActionKeyword);
Assert.AreEqual("file.txt", q.FirstSearch);
Assert.AreEqual("file2", q.SecondSearch);