Read a larger sheet

This commit is contained in:
dfinke
2018-05-27 13:44:29 -04:00
parent 36387c8f1a
commit 4df916c9f5
2 changed files with 10 additions and 1 deletions

Binary file not shown.

View File

@@ -17,7 +17,16 @@ Describe "Tests" {
$data[1].p1 | Should be "b"
}
It "Should read fast <1000 milliseconds" {
It "Should read fast < 1000 milliseconds" {
$timer.TotalMilliseconds | should BeLessThan 1000
}
It "Should read larger xlsx < 2000 milliseconds" {
$timer = Measure-Command {
$null = Import-Excel $PSScriptRoot\LargerFile.xlsx
}
$timer.TotalMilliseconds | should BeLessThan 2000
}
}