This file contains hidden or 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
# Begin Testing | |
try | |
{ | |
InModuleScope -ModuleName ToyBox -ScriptBlock { | |
Function Set-ObjectMockProperties ($object,[switch]$Exists) | |
{ | |
# This function will load the object and set the global script variables with the values supplied. | |
# By doing this, we can later easily change how we interact with the object and make edits along | |
# the way in other Mocks or Tests. |
This file contains hidden or 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
# | |
# Example PowerShell v5 class | |
# | |
# Jeremy Goodrum - ExosphereData, LLC 2017 | |
# | |
enum EnumState | |
{ | |
Missing | |
Stored |
This file contains hidden or 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
# | |
# Example PowerShell v5 class for a ToyBox | |
# | |
# Jeremy Goodrum - ExosphereData, LLC 2017 | |
# http://www.exospheredata.com/2017/01/12/building-your-first-powershell-class | |
enum EnumState | |
{ | |
Missing | |
Stored |