Increase code coverage #22

Merged
OCram85 merged 34 commits from dev into master 2018-03-21 12:16:09 +01:00
1 changed files with 8 additions and 9 deletions
Showing only changes of commit 793035fa47 - Show all commits

View File

@ -25,15 +25,14 @@ Describe "Test-ChallengeFile" {
It "No parameter and existing file should return true" {
Test-ChallengeFile | Should -Be $true
}
Context "Execute with parameter" {
$TestChFile = "{0}\resources\Challenge.bin" -f $RepoRoot
It "Provide valid path" {
Test-ChallengeFile -Path $TestChFile | Should -Be $true
}
It "Provide fake path" {
Test-ChallengeFile -Path "C:\notexisting.bin" | Should -Be $false
}
}
Context "Execute with parameter" {
$TestChFile = "{0}\resources\Challenge.bin" -f $RepoRoot
It "Provide valid path" {
Test-ChallengeFile -Path $TestChFile | Should -Be $true
}
It "Provide fake path" {
Test-ChallengeFile -Path "C:\notexisting.bin" | Should -Be $false
}
}
}