|
|
|
@ -132,6 +132,18 @@ namespace PackageManagement.Tests
@@ -132,6 +132,18 @@ namespace PackageManagement.Tests
|
|
|
|
|
Assert.IsTrue(created); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_ConsoleHostIsNotRunning_ConsolePadIsBroughtToFront() |
|
|
|
|
{ |
|
|
|
|
CreateRunner(); |
|
|
|
|
ConsoleHostIsNotRunning(); |
|
|
|
|
RunInstallActionWithOneOperation(); |
|
|
|
|
|
|
|
|
|
bool shown = fakeWorkbench.IsShowConsolePadCalled; |
|
|
|
|
|
|
|
|
|
Assert.IsTrue(shown); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_ConsoleHostIsRunning_ConsolePadIsNotCreated() |
|
|
|
|
{ |
|
|
|
@ -144,6 +156,18 @@ namespace PackageManagement.Tests
@@ -144,6 +156,18 @@ namespace PackageManagement.Tests
|
|
|
|
|
Assert.IsFalse(created); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_ConsoleHostIsRunning_ConsolePadIsBroughtToFront() |
|
|
|
|
{ |
|
|
|
|
CreateRunner(); |
|
|
|
|
ConsoleHostIsRunning(); |
|
|
|
|
RunInstallActionWithOneOperation(); |
|
|
|
|
|
|
|
|
|
bool shown = fakeWorkbench.IsShowConsolePadCalled; |
|
|
|
|
|
|
|
|
|
Assert.IsTrue(shown); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_TwoActionsToRunAndConsoleHostIsNotRunning_ConsolePadIsCreated() |
|
|
|
|
{ |
|
|
|
@ -156,6 +180,18 @@ namespace PackageManagement.Tests
@@ -156,6 +180,18 @@ namespace PackageManagement.Tests
|
|
|
|
|
Assert.IsTrue(created); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_TwoActionsToRunAndConsoleHostIsNotRunning_ConsolePadIsBroughtToFront() |
|
|
|
|
{ |
|
|
|
|
CreateRunner(); |
|
|
|
|
ConsoleHostIsNotRunning(); |
|
|
|
|
RunTwoInstallActionsWithOneOperation(); |
|
|
|
|
|
|
|
|
|
bool shown = fakeWorkbench.IsShowConsolePadCalled; |
|
|
|
|
|
|
|
|
|
Assert.IsTrue(shown); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_TwoActionsToRunAndConsoleHostIsRunning_ConsolePadIsNotCreated() |
|
|
|
|
{ |
|
|
|
@ -168,6 +204,18 @@ namespace PackageManagement.Tests
@@ -168,6 +204,18 @@ namespace PackageManagement.Tests
|
|
|
|
|
Assert.IsFalse(created); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_TwoActionsToRunAndConsoleHostIsRunning_ConsolePadIsBroughtToFront() |
|
|
|
|
{ |
|
|
|
|
CreateRunner(); |
|
|
|
|
ConsoleHostIsRunning(); |
|
|
|
|
RunTwoInstallActionsWithOneOperation(); |
|
|
|
|
|
|
|
|
|
bool shown = fakeWorkbench.IsShowConsolePadCalled; |
|
|
|
|
|
|
|
|
|
Assert.IsTrue(shown); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void Run_TwoActionsToRunAndConsoleHostIsRunning_CommandPassedToConsoleHostToProcessPackageActions() |
|
|
|
|
{ |
|
|
|
|