From 6cf502f9ab1cf27055dcf81fded80af1f67ad185 Mon Sep 17 00:00:00 2001 From: Marko Bozikovic Date: Thu, 25 Apr 2019 14:22:15 +0200 Subject: [PATCH] [#1258] SqlRS unit test making sure InitializeReportServer CIM method is never called --- Tests/Unit/MSFT_SqlRS.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/MSFT_SqlRS.Tests.ps1 b/Tests/Unit/MSFT_SqlRS.Tests.ps1 index 60f4a8641..fc81927b9 100644 --- a/Tests/Unit/MSFT_SqlRS.Tests.ps1 +++ b/Tests/Unit/MSFT_SqlRS.Tests.ps1 @@ -375,7 +375,7 @@ try Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter { $MethodName -eq 'InitializeReportServer' - } -Exactly -Times 1 -Scope It + } -Exactly -Times 0 -Scope It Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter { $MethodName -eq 'SetDatabaseConnection' @@ -657,7 +657,7 @@ try Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter { $MethodName -eq 'InitializeReportServer' - } -Exactly -Times 1 -Scope It + } -Exactly -Times 0 -Scope It Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter { $MethodName -eq 'SetDatabaseConnection'