mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
committed by
Aditya Patwardhan
parent
d56c1913aa
commit
30e9e309dc
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user