added Pester tests for PSVersionTable

This commit is contained in:
Peter Honeder 2015-07-20 17:18:06 -07:00
parent 967279afc7
commit dcf919a0e2

View File

@ -0,0 +1,17 @@
Describe "Test-PSVersionTable" {
It "Should have version table entries" {
$PSVersionTable.Count | Should BeGreaterThan 6
}
It "Should have the right version table entries" {
$PSVersionTable.ContainsKey("PSVersion") | Should Be True
$PSVersionTable.ContainsKey("WSManStackVersion") | Should Be True
$PSVersionTable.ContainsKey("SerializationVersion") | Should Be True
$PSVersionTable.ContainsKey("CLRVersion") | Should Be True
$PSVersionTable.ContainsKey("BuildVersion") | Should Be True
$PSVersionTable.ContainsKey("PSCompatibleVersions") | Should Be True
$PSVersionTable.ContainsKey("PSRemotingProtocolVersion") | Should Be True
}
}