renamed to NotAsDictionary

This commit is contained in:
dfinke
2022-04-12 18:08:11 -04:00
parent 483f761016
commit 7f36b44fa8
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
[ValidateNotNullOrEmpty()]
[String]$Password,
[Int[]]$ImportColumns,
[Switch]$NoHashtable
[Switch]$NotAsDictionary
)
end {
$sw = [System.Diagnostics.Stopwatch]::StartNew()
@@ -235,7 +235,7 @@
finally {
if ($Path) { $stream.close(); $ExcelPackage.Dispose() }
if ($NoHashtable) {
if ($NotAsDictionary) {
foreach ($entry in $xlbook.GetEnumerator()) {
$entry.Value
}

View File

@@ -50,7 +50,7 @@ Describe 'Different ways to import sheets' -Tag ImportExcelReadSheets {
}
It 'Should return an array not a dictionary' {
$actual = Import-Excel $xlFilename april, june -NoHashtable
$actual = Import-Excel $xlFilename april, june -NotAsDictionary
$actual.Count | Should -Be 200
$group = $actual | Group-Object month -NoElement