Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit a7a903a

Browse files
committed
Added unit test
1 parent 8dfbdc2 commit a7a903a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Tests/Unit/MSFT_WindowsOptionalFeature.Tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ try
317317
$propertiesAsStrings.Contains("Name = Object $objectNumber, Value = Value $objectNumber, Path = Path $objectNumber") | Should -BeTrue
318318
}
319319
}
320+
321+
It 'Should return an empty array and not a null object when input is empty' {
322+
$propertiesAsStrings = (Convert-CustomPropertyArrayToStringArray -CustomProperties @()) -is [String[]] | Should -BeTrue
323+
}
320324
}
321325
}
322326
}

0 commit comments

Comments
 (0)