Files
PowerShell/test/powershell/Update-FormatData.Tests.ps1
T

15 lines
520 B
PowerShell
Raw Normal View History

2015-11-19 06:24:04 +00:00
Describe "Update-FormatData" {
Context "Validate Update-FormatData update correctly" {
It "Should not throw upon reloading previous formatting file" {
2015-11-19 06:24:04 +00:00
{ Update-FormatData } | Should Not throw
}
It "Should validly load formatting data" {
{ Get-FormatData -typename System.Diagnostics.Process | Export-FormatData -Path "outputfile.ps1xml" }
2015-11-19 06:24:04 +00:00
{ Update-FormatData -prependPath "outputfile.ps1xml" | Should Not throw }
{ Remove-Item "outputfile.ps1xml" -ErrorAction SilentlyContinue }
}
}
}