PublishTestResults.psm1

function Publish-TestResults ([string] $fileName) {
    if ($env:TEAMCITY_VERSION) {
        Write-Host "##teamcity[importData type='nunit' path='$fileName']"
    }
    if ($env:TF_BUILD) {
        Write-Host "##vso[results.publish type=NUnit;resultFiles=$fileName;]"
    }
}