Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fflaten committed Feb 26, 2023
1 parent 0213a92 commit 621534b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/functions/TestResults.NUnit3.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,7 @@ function Write-NUnit3TestCaseElement ($TestResult, [System.Xml.XmlWriter] $XmlWr
Skipped { Write-NUnitReasonElement -TestResult $TestResult -XmlWriter $XmlWriter; break }
Pending { Write-NUnitReasonElement -TestResult $TestResult -XmlWriter $XmlWriter; break }
Inconclusive { Write-NUnitReasonElement -TestResult $TestResult -XmlWriter $XmlWriter; break }
Failed {
Write-NUnit3FailureElement -TestResult $TestResult -XmlWriter $XmlWriter
break
}
Failed { Write-NUnit3FailureElement -TestResult $TestResult -XmlWriter $XmlWriter; break }
}

if ($TestResult.StandardOutput) {
Expand All @@ -468,7 +465,7 @@ function Write-NUnit3TestCaseElement ($TestResult, [System.Xml.XmlWriter] $XmlWr
function Write-NUnit3TestCaseAttributes ($TestResult, [System.Xml.XmlWriter] $XmlWriter) {
# add parameters to name for testcase with data when not using variables in name
if ($TestResult.Data -and ($TestResult.Name -eq $TestResult.ExpandedName)) {
$paramString = Get-NUnitParamString -Node $TestResult
$paramString = Get-NUnit3ParamString -Node $TestResult
$name = "$($TestResult.Name)$paramString"
$fullname = "$($TestResult.ExpandedPath)$paramString"
}
Expand Down Expand Up @@ -566,7 +563,7 @@ function Get-NUnit3NodeId {
else { '' }
}

function Get-NUnitParamString ($Node) {
function Get-NUnit3ParamString ($Node) {
$paramString = ''
if ($null -ne $Node.Data) {
$params = @(
Expand Down

0 comments on commit 621534b

Please sign in to comment.