|
|
@ -69,7 +69,7 @@ namespace PackageManagement.Tests.Scripting |
|
|
|
fakeConsoleHost.IsRunning = true; |
|
|
|
fakeConsoleHost.IsRunning = true; |
|
|
|
OpenSolution(); |
|
|
|
OpenSolution(); |
|
|
|
|
|
|
|
|
|
|
|
string command = fakeScriptingConsole.LastLinePassedToSendLine; |
|
|
|
string command = fakeConsoleHost.LastCommandExecuted; |
|
|
|
string expectedCommand = "Invoke-InitializePackages"; |
|
|
|
string expectedCommand = "Invoke-InitializePackages"; |
|
|
|
|
|
|
|
|
|
|
|
Assert.AreEqual(expectedCommand, command); |
|
|
|
Assert.AreEqual(expectedCommand, command); |
|
|
@ -83,7 +83,7 @@ namespace PackageManagement.Tests.Scripting |
|
|
|
fakeConsoleHost.IsRunning = true; |
|
|
|
fakeConsoleHost.IsRunning = true; |
|
|
|
OpenSolution(); |
|
|
|
OpenSolution(); |
|
|
|
|
|
|
|
|
|
|
|
bool contains = fakeScriptingConsole.AllTextPassedToSendLine.Contains("Invoke-InitializePackages"); |
|
|
|
bool contains = fakeConsoleHost.CommandsExecuted.Contains("Invoke-InitializePackages"); |
|
|
|
|
|
|
|
|
|
|
|
Assert.IsFalse(contains); |
|
|
|
Assert.IsFalse(contains); |
|
|
|
} |
|
|
|
} |
|
|
|