File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,4 @@ function Invoke-SqlDscQuery
270270 }
271271 }
272272 }
273-
274- end
275- {
276- }
277273}
Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ Describe 'Invoke-SqlDscQuery' -Tag 'Public' {
186186 $mockSqlCredentialSecurePassword = ConvertTo-SecureString - String $mockSqlCredentialPassword - AsPlainText - Force
187187 $mockSqlCredential = [System.Management.Automation.PSCredential ]::new($mockSqlCredentialUserName , $mockSqlCredentialSecurePassword )
188188
189- Mock - CommandName Disconnect-SqlDscDatabaseEngine
190189 Mock - CommandName Connect-SqlDscDatabaseEngine - MockWith {
191190 return $mockServerObject
192191 }
@@ -200,7 +199,6 @@ Describe 'Invoke-SqlDscQuery' -Tag 'Public' {
200199 $mockMethodExecuteNonQueryCallCount | Should - Be 1
201200
202201 Should - Invoke - CommandName Connect-SqlDscDatabaseEngine - Exactly - Times 1 - Scope It
203- Should - Invoke - CommandName Disconnect-SqlDscDatabaseEngine - Exactly - Times 1 - Scope It
204202 }
205203
206204 Context ' When calling the command with optional parameter Encrypt' {
@@ -212,7 +210,6 @@ Describe 'Invoke-SqlDscQuery' -Tag 'Public' {
212210 $mockMethodExecuteNonQueryCallCount | Should - Be 1
213211
214212 Should - Invoke - CommandName Connect-SqlDscDatabaseEngine - Exactly - Times 1 - Scope It
215- Should - Invoke - CommandName Disconnect-SqlDscDatabaseEngine - Exactly - Times 1 - Scope It
216213 }
217214 }
218215 }
You can’t perform that action at this time.
0 commit comments