You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It 'refuses to find packages when the specified source does not exist' {
186
+
{Find-Package-Name $package-Source $defaultSource-ErrorAction Stop} | Should -Throw 'The specified source is not registered with the package provider.'
187
+
}
188
+
189
+
It 'refuses to install packages when the specified source does not exist' {
190
+
{Install-Package-Name $package-Source $defaultSource-ErrorAction Stop} | Should -Throw 'The specified source is not registered with the package provider.'
191
+
}
192
+
193
+
It 'refuses to find packages when multiple custom sources are defined and no source specified' {
194
+
{Find-Package-Name $package-ErrorAction Stop} | Should -Throw 'Multiple non-default sources are defined, but no source was specified. Source could not be determined.'
195
+
}
196
+
197
+
It 'refuses to install packages when multiple custom sources are defined and no source specified' {
198
+
{Install-Package-Name $package-ErrorAction Stop} | Should -Throw 'Multiple non-default sources are defined, but no source was specified. Source could not be determined.'
0 commit comments