mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[PTRun] Windows Terminal plugin: Add option to open profiles in quake window (#19960)
* Run/Windows Terminal: Add option to open profiles in quake window * Typo * Incorporate review feedback
This commit is contained in:
@@ -15,11 +15,13 @@ namespace Microsoft.Plugin.WindowsTerminal.UnitTests
|
||||
public class TerminalHelperTests
|
||||
{
|
||||
[DataTestMethod]
|
||||
[DataRow("Windows PowerShell", true, "--window 0 nt --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", false, "--profile \"Windows PowerShell\"")]
|
||||
public void ArgumentsTest(string profile, bool openNewTab, string expectedArguments)
|
||||
[DataRow("Windows PowerShell", true, true, "--window _quake --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", false, true, "--window _quake --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", true, false, "--window 0 nt --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", false, false, " --profile \"Windows PowerShell\"")]
|
||||
public void ArgumentsTest(string profile, bool openNewTab, bool openQuake, string expectedArguments)
|
||||
{
|
||||
var arguments = TerminalHelper.GetArguments(profile, openNewTab);
|
||||
var arguments = TerminalHelper.GetArguments(profile, openNewTab, openQuake);
|
||||
Assert.AreEqual(arguments, expectedArguments);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user