bbebf2f76a
- Pester source code moved to `test/Pester`, deleted `ext-src`. - Pester tests (.ps1 files) moved to `test/powershell` - xUnit tests (.cs files) moved to `test/csharp` - Third-party script test moved to `test/shebang`
15 lines
534 B
PowerShell
15 lines
534 B
PowerShell
Describe "Update-FormatData" {
|
|
|
|
Context "Validate Update-FormatData update correctly" {
|
|
|
|
It "Should not throw upon reloading previous formatting file" {
|
|
{ Update-FormatData } | Should Not throw
|
|
}
|
|
|
|
It "Should validly load formatting data" {
|
|
{ Get-FormatData -typename System.Diagnostics.Process | Export-FormatData -Path "outputfile.ps1xml" }
|
|
{ Update-FormatData -prependPath "outputfile.ps1xml" | Should Not throw }
|
|
{ Remove-Item "outputfile.ps1xml" -ErrorAction SilentlyContinue }
|
|
}
|
|
}
|
|
}
|