Rename some tests because they are duplicates (#6312)

Also remove a couple of language tests which were actually duplicated
Change the one loop which loops through test cases to include an iteration number to remove test name duplication
This commit is contained in:
James Truher [MSFT]
2018-03-07 10:25:49 -08:00
committed by Aditya Patwardhan
parent d56c1913aa
commit 30e9e309dc
3 changed files with 17 additions and 23 deletions
@@ -261,13 +261,13 @@ Describe "Unit tests for various script breakpoints" -Tags "CI" {
{
$actual = @(& $command)
It "Script breakpoint count" {
It "Script breakpoint count '${command}'|${expected}" {
$actual.Count | Should Be $expected.Count
}
foreach ($breakpoint in $actual)
{
It "Expected script breakpoints" {
It "Expected script breakpoints '${command}|${breakpoint}'" {
($expected -contains $breakpoint) | Should Be $true
}
}
@@ -286,7 +286,7 @@ Describe "Unit tests for various script breakpoints" -Tags "CI" {
}
catch
{
It "Script failed expected exception" {
It "Script failed expected exception '${command}'" {
$_.Exception.GetType().Name | Should Be $exception
}
}