diff --git a/UnitTests/ImportExcelTests/LargerFile.xlsx b/UnitTests/ImportExcelTests/LargerFile.xlsx new file mode 100644 index 0000000..1658f67 Binary files /dev/null and b/UnitTests/ImportExcelTests/LargerFile.xlsx differ diff --git a/UnitTests/ImportExcelTests/Simple.tests.ps1 b/UnitTests/ImportExcelTests/Simple.tests.ps1 index 69c042d..9ebfd47 100644 --- a/UnitTests/ImportExcelTests/Simple.tests.ps1 +++ b/UnitTests/ImportExcelTests/Simple.tests.ps1 @@ -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 + } + } \ No newline at end of file