diff --git a/.version/test/version.tests.ps1 b/.version/test/version.tests.ps1 index b49c8c6..91faca4 100644 --- a/.version/test/version.tests.ps1 +++ b/.version/test/version.tests.ps1 @@ -44,8 +44,8 @@ Describe 'version.ps1' { } } - Assert-MockCalled -CommandName 'Get-Content' -Exactly 4 - Assert-MockCalled -CommandName 'Set-Content' -Exactly 4 + Should -Invoke Get-Content -Exactly -Times 4 + Should -Invoke Set-Content -Exactly -Times 4 } It 'matched version is a no-op' { @@ -75,8 +75,8 @@ Describe 'version.ps1' { } } - Assert-MockCalled -CommandName 'Get-Content' -Exactly 4 - Assert-MockCalled -CommandName 'Set-Content' -Exactly 4 + Should -Invoke Get-Content -Exactly -Times 4 + Should -Invoke Set-Content -Exactly -Times 4 } BeforeEach {