Skip to content

Commit

Permalink
Final aditional test
Browse files Browse the repository at this point in the history
  • Loading branch information
Windos committed Feb 4, 2019
1 parent 9b7c5c4 commit fe6ef23
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Tests/BurntToast.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,21 @@ Describe 'New-BTImage' {
$Log | should Be $Expected
}
}
Context 'web based image' {
Start-Transcript tmp.log
try {
New-BTImage -Source https://raw.githubusercontent.com/Windos/BurntToast/master/Media/BurntToast.png -WhatIf
}
finally {
Stop-Transcript
$Log = (Get-Content tmp.log).Where({ $_ -match "What if: " })
Remove-Item tmp.log
}
It 'has consitent WhatIf response' {
$Expected = "What if: Performing the operation ""New-BTImage"" on target ""returning: [AdaptiveImage]:Source=$($env:TEMP)\BurntToast.png:AlternateText=:HintCrop=Default:HintRemoveMargin=False:HintAlign=Default:AddImageQuery=""."
$Log | should Be $Expected
}
}
}

Describe 'New-BTProgressBar' {
Expand Down

0 comments on commit fe6ef23

Please sign in to comment.