@@ -56,12 +56,12 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
5656 Mock Set-ShellLibraryProperty - Verifiable
5757 Context ' absent, Set' {
5858 Mock Add-ShellLibrary {
59- New-Object ShellLibrary - Property @ {
59+ New-Object psobject - Property @ {
6060 Name = ' libary name'
6161 }
6262 } - Verifiable
6363 It ' returns nothing' {
64- $object = New-Object ShellLibrary - Property @ {
64+ $object = New-Object psobject - Property @ {
6565 Name = ' library name'
6666 TypeName = ' Pictures'
6767 StockIconName = ' Application'
@@ -93,7 +93,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
9393 }
9494 } - Verifiable
9595 It ' returns nothing' {
96- $object = New-Object ShellLibrary - Property @ {
96+ $object = New-Object psobject - Property @ {
9797 Name = ' library name'
9898 TypeName = ' Pictures'
9999 IconFilePath = ' c:\folder\some.exe'
@@ -124,7 +124,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
124124 }
125125 } - Verifiable
126126 It ' returns nothing' {
127- $object = New-Object ShellLibrary - Property @ {
127+ $object = New-Object psobject - Property @ {
128128 Name = ' library name'
129129 TypeName = ' Pictures'
130130 StockIconName = ' Application'
@@ -155,7 +155,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
155155 }
156156 } - Verifiable
157157 It ' returns nothing' {
158- $object = New-Object ShellLibrary - Property @ {
158+ $object = New-Object psobject - Property @ {
159159 Name = ' library name'
160160 }
161161 $r = $object | Invoke-ProcessShellLibrary Set
@@ -189,7 +189,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
189189 }
190190 Context ' absent, Test' {
191191 It ' returns false' {
192- $object = New-Object ShellLibrary - Property @ {
192+ $object = New-Object psobject - Property @ {
193193 Name = ' library name'
194194 TypeName = ' Pictures'
195195 StockIconName = ' Application'
@@ -216,7 +216,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
216216 }
217217 } - Verifiable
218218 It ' returns nothing' {
219- $object = New-Object ShellLibrary - Property @ {
219+ $object = New-Object psobject - Property @ {
220220 Name = ' library name'
221221 TypeName = ' Pictures'
222222 StockIconName = ' Application'
@@ -242,7 +242,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
242242 }
243243 } - Verifiable
244244 It ' returns true' {
245- $object = New-Object ShellLibrary - Property @ {
245+ $object = New-Object psobject - Property @ {
246246 Name = ' library name'
247247 TypeName = ' Pictures'
248248 StockIconName = ' Application'
@@ -269,7 +269,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
269269 }
270270 } - Verifiable
271271 It ' returns false' {
272- $object = New-Object ShellLibrary - Property @ {
272+ $object = New-Object psobject - Property @ {
273273 Name = ' library name'
274274 TypeName = ' Music'
275275 StockIconName = ' Application'
@@ -296,7 +296,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Present' {
296296 }
297297 } - Verifiable
298298 It ' returns false' {
299- $object = New-Object ShellLibrary - Property @ {
299+ $object = New-Object psobject - Property @ {
300300 Name = ' library name'
301301 TypeName = ' Pictures'
302302 StockIconName = ' Application'
@@ -326,7 +326,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Absent' {
326326 Mock Set-ShellLibraryProperty - Verifiable
327327 Context ' absent, Set' {
328328 It ' returns nothing' {
329- $object = New-Object ShellLibrary - Property @ {
329+ $object = New-Object psobject - Property @ {
330330 Name = ' library name'
331331 TypeName = ' Pictures'
332332 StockIconName = ' Application'
@@ -346,7 +346,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Absent' {
346346 }
347347 Context ' absent, Test' {
348348 It ' returns true' {
349- $object = New-Object ShellLibrary - Property @ {
349+ $object = New-Object psobject - Property @ {
350350 Name = ' library name'
351351 TypeName = ' Pictures'
352352 StockIconName = ' Application'
@@ -374,7 +374,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Absent' {
374374 }
375375 } - Verifiable
376376 It ' returns nothing' {
377- $object = New-Object ShellLibrary - Property @ {
377+ $object = New-Object psobject - Property @ {
378378 Name = ' library name'
379379 TypeName = ' Pictures'
380380 StockIconName = ' Application'
@@ -401,7 +401,7 @@ Describe 'Invoke-ProcessShellLibrary -Ensure Absent' {
401401 }
402402 } - Verifiable
403403 It ' returns false' {
404- $object = New-Object ShellLibrary - Property @ {
404+ $object = New-Object psobject - Property @ {
405405 Name = ' library name'
406406 TypeName = ' Pictures'
407407 StockIconName = ' Application'
0 commit comments