Tests/tools/Get-DefectSuite.Tests.ps1
. "$PSScriptRoot/../../src/tools/Get-DefectSuite.ps1" # Remove-Module "$ModuleName" # Import-Module $ModuleManifest -Force -ErrorAction Stop Describe 'Test-Get-DefectSuite' { It 'Get DS description' { {Get-DefectSuite "DS2820" -pull} | Should -Not -BeNullOrEmpty } } Describe 'Gets-DefectSuites-defects' { It 'Should-not-throw' { getDsDefects(515052721804) | Should -Not -BeNullOrEmpty } } Describe 'Test DefectResponse deserialization' { It 'Should not throw' { getDsDefects(515052721804) | defectResponseToDefect | Should -Not -BeNullOrEmpty } } Describe 'Cast Defect Response as Defect' { It 'Should be a Defect' { $true } } |