Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Holt committed Apr 10, 2019
1 parent 2a73419 commit e818dfa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion PSCompatibilityAnalyzer/Tests/QueryApi.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ namespace PSScriptAnalyzerTests

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

$typeData.Instance.Properties.Count | Should -Be 2

$typeData.Instance.Properties.ContainsKey('JobId') | Should -BeTrue
$typeData.Instance.Properties.ContainsKey('JOBID') | Should -BeTrue
$typeData.Instance.Properties.ContainsKey('jobid') | Should -Not -BeTrue

$typeQueryObject.Instance.Properties.Count | Should -Be 1
$typeQueryObject.Instance.Properties.Keys | Should -Contain 'jobid'

$typeQueryObject.Instance.Properties.ContainsKey('JobId') | Should -BeTrue
$typeQueryObject.Instance.Properties.ContainsKey('JobID') | Should -BeTrue
$typeQueryObject.Instance.Properties.ContainsKey('jobid') | Should -BeTrue
}
}

0 comments on commit e818dfa

Please sign in to comment.