added Pester tests for PSVersionTable
This commit is contained in:
parent
967279afc7
commit
dcf919a0e2
17
src/pester-tests/Test-PSVersionTable.Tests.ps1
Normal file
17
src/pester-tests/Test-PSVersionTable.Tests.ps1
Normal 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
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user