Skip to content

Commit e818dfa

Browse files
author
Robert Holt
committed
Improve tests
1 parent 2a73419 commit e818dfa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PSCompatibilityAnalyzer/Tests/QueryApi.Tests.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ namespace PSScriptAnalyzerTests
2121

2222
$typeQueryObject = New-Object 'Microsoft.PowerShell.CrossCompatibility.Query.TypeData' ('QueryApiTestObject', $typeData)
2323

24+
$typeData.Instance.Properties.Count | Should -Be 2
25+
26+
$typeData.Instance.Properties.ContainsKey('JobId') | Should -BeTrue
27+
$typeData.Instance.Properties.ContainsKey('JOBID') | Should -BeTrue
28+
$typeData.Instance.Properties.ContainsKey('jobid') | Should -Not -BeTrue
29+
2430
$typeQueryObject.Instance.Properties.Count | Should -Be 1
25-
$typeQueryObject.Instance.Properties.Keys | Should -Contain 'jobid'
31+
32+
$typeQueryObject.Instance.Properties.ContainsKey('JobId') | Should -BeTrue
33+
$typeQueryObject.Instance.Properties.ContainsKey('JobID') | Should -BeTrue
34+
$typeQueryObject.Instance.Properties.ContainsKey('jobid') | Should -BeTrue
2635
}
2736
}

0 commit comments

Comments
 (0)