MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
448 stars 157 forks source link

Fix membership tests (add -and) #242

Closed MichelZ closed 4 years ago

MichelZ commented 4 years ago

PR Summary

Membership tests lack "-and" operator. I did occasionally get wrong results like this:

Context Test-VSTeamMembership
      [-] Should test membership 18ms
        Expected Invoke-RestMethod in module VSTeam to be called 1 times exactly but was called 2 times
        22:             Assert-MockCalled Invoke-RestMethod -Exactly 1 -ParameterFilter {
        at <ScriptBlock>, C:\MIZE\DEV\GitHub\vsteam\unit\test\membership.Tests.ps1: line 22

PR Checklist

(No need for those)

DarqueWarrior commented 4 years ago

We will just roll them into the next release.