Files
ImportExcel/UnitTests/ImportExcelTests/Simple.tests.ps1
2018-05-27 12:56:46 -04:00

23 lines
521 B
PowerShell

Import-Module $PSScriptRoot\..\..\ImportExcel.psd1
Describe "Tests" {
BeforeAll {
$data = $null
$timer = Measure-Command {
$data = Import-Excel $PSScriptRoot\Simple.xlsx
}
}
It "Should have two items" {
$data.count | Should be 2
}
It "Should have items a and b" {
$data[0].p1 | Should be "a"
$data[1].p1 | Should be "b"
}
It "Should read fast <25 milliseconds" {
$timer.TotalMilliseconds | should BeLessThan 25
}
}