mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Test frameworks consolidated (#12672)
This commit is contained in:
committed by
GitHub
parent
c3a51f9227
commit
e96c0da265
@@ -3,25 +3,26 @@
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using PowerLauncher.Plugin;
|
||||
using Wox.Plugin;
|
||||
|
||||
namespace Wox.Test
|
||||
{
|
||||
[TestFixture]
|
||||
[TestClass]
|
||||
public class PluginManagerTest
|
||||
{
|
||||
[TestCase(">", "dummyQueryText", "dummyTitle", "> dummyQueryText")]
|
||||
[TestCase(">", null, "dummyTitle", "> dummyTitle")]
|
||||
[TestCase(">", "", "dummyTitle", "> dummyTitle")]
|
||||
[TestCase("", "dummyQueryText", "dummyTitle", "dummyQueryText")]
|
||||
[TestCase("", null, "dummyTitle", "dummyTitle")]
|
||||
[TestCase("", "", "dummyTitle", "dummyTitle")]
|
||||
[TestCase(null, "dummyQueryText", "dummyTitle", "dummyQueryText")]
|
||||
[TestCase(null, null, "dummyTitle", "dummyTitle")]
|
||||
[TestCase(null, "", "dummyTitle", "dummyTitle")]
|
||||
[DataTestMethod]
|
||||
[DataRow(">", "dummyQueryText", "dummyTitle", "> dummyQueryText")]
|
||||
[DataRow(">", null, "dummyTitle", "> dummyTitle")]
|
||||
[DataRow(">", "", "dummyTitle", "> dummyTitle")]
|
||||
[DataRow("", "dummyQueryText", "dummyTitle", "dummyQueryText")]
|
||||
[DataRow("", null, "dummyTitle", "dummyTitle")]
|
||||
[DataRow("", "", "dummyTitle", "dummyTitle")]
|
||||
[DataRow(null, "dummyQueryText", "dummyTitle", "dummyQueryText")]
|
||||
[DataRow(null, null, "dummyTitle", "dummyTitle")]
|
||||
[DataRow(null, "", "dummyTitle", "dummyTitle")]
|
||||
public void QueryForPluginSetsActionKeywordWhenQueryTextDisplayIsEmpty(string actionKeyword, string queryTextDisplay, string title, string expectedResult)
|
||||
{
|
||||
// Arrange
|
||||
|
||||
Reference in New Issue
Block a user