In addition to fixes and minor improvements below, this release adds support for mocking -- you can now mock ScriptClass methods to easily develop comprehensive unit tests for ScriptClass code.
New features
Add Mock-ScriptClassMethod cmdlet to enable mocking via the Pester test framework
Add Unmock-ScriptClassMethod cmdlet to remove mocks added by Mock-ScriptClassMethod
Add New-ScriptObjectMock cmdlet to created mocked objects for unit testing compatible with the other mock cmdlets in this module
Add GetScriptHashCode method to ScriptClass objects to return unique hash codes since GetHashCode hashes objects of the same class to the same value
Fixed defects
Fixed inability to use a parameter named 'method' in a ScriptClass object method due to name collision
In addition to fixes and minor improvements below, this release adds support for mocking -- you can now mock
ScriptClass
methods to easily develop comprehensive unit tests forScriptClass
code.New features
Mock-ScriptClassMethod
cmdlet to enable mocking via the Pester test frameworkUnmock-ScriptClassMethod
cmdlet to remove mocks added byMock-ScriptClassMethod
New-ScriptObjectMock
cmdlet to created mocked objects for unit testing compatible with the other mock cmdlets in this moduleGetScriptHashCode
method to ScriptClass objects to return unique hash codes since GetHashCode hashes objects of the same class to the same valueFixed defects