Created
September 24, 2021 04:38
-
-
Save techthoughts2/acd7dd2d749240c4be596c37b1c03446 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$script:mockCalled = 0 | |
$mockInvoke = { | |
$script:mockCalled++ | |
if ($script:mockCalled -eq 1) { | |
return $false | |
} | |
elseif ($script:mockCalled -eq 2) { | |
return $true | |
} | |
} | |
Mock -CommandName Get-TableRowInfo -MockWith $mockInvoke |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment