-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1078 from dfinke/Add-Checks-And-Warnings-for-Add-…
…Member-Open-Excel-Package Add-Checks-And-Warnings-for-Add-Member-Open-Excel-Package
- Loading branch information
Showing
5 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#Requires -Modules Pester | ||
|
||
if (-not (Get-command Import-Excel -ErrorAction SilentlyContinue)) { | ||
Import-Module $PSScriptRoot\..\ImportExcel.psd1 | ||
} | ||
|
||
<# | ||
Methods | ||
------- | ||
Dispose | ||
Equals | ||
GetAsByteArray | ||
GetHashCode | ||
GetType | ||
Load | ||
Save | ||
SaveAs | ||
ToString | ||
Properties | ||
---------- | ||
Compatibility | ||
Compression | ||
DoAdjustDrawings | ||
Encryption | ||
File | ||
Package | ||
Stream | ||
Workbook | ||
#> | ||
|
||
Describe "Test Open Excel Package" -Tag Open-ExcelPackage { | ||
It "Should handle opening a workbook with Worksheet Names that will cause errors" { | ||
$xlFilename = "$PSScriptRoot\UnsupportedWorkSheetNames.xlsx" | ||
|
||
{ Open-ExcelPackage -Path $xlFilename -ErrorAction Stop } | Should -Not -Throw | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters