2015-11-19 07:24:28 +01:00
|
|
|
Describe "Update-TypeData" {
|
|
|
|
|
|
|
|
Context "Validate Update-Type updates correctly" {
|
|
|
|
|
2016-03-04 23:52:27 +01:00
|
|
|
It "Should not throw upon reloading previous formatting file" {
|
|
|
|
{ Update-TypeData } | Should Not throw
|
|
|
|
}
|
2015-11-19 07:24:28 +01:00
|
|
|
|
2016-03-04 23:52:27 +01:00
|
|
|
It "Should validly load formatting data" {
|
|
|
|
{ Get-TypeData -typename System.Diagnostics.Process | Export-TypeData -Path "outputfile.ps1xml" }
|
|
|
|
{ Update-TypeData -prependPath "outputfile.ps1xml" | Should Not throw }
|
|
|
|
{ Remove-Item "outputfile.ps1xml" -ErrorAction SilentlyContinue }
|
|
|
|
}
|
2015-11-19 07:24:28 +01:00
|
|
|
}
|
|
|
|
}
|