Functions/Get-MSPCompleteUserToGSuiteUserExtendedPropertyMap.Tests.ps1
describe "BitTitan.Runbooks.MSPComplete/Get-MSPCompleteUserToGSuiteUserExtendedPropertyMap" -Tags "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-MSPCompleteUserToGSuiteUserExtendedPropertyMap.ps1" it "returns the list of user extended properties mapped between MSPComplete and GSuite" { # Call the function $output = Get-MSPCompleteUserToGSuiteUserExtendedPropertyMap # Verify the output (@{ CompanyName = "organizations.name" Department = "organizations.department" JobTitle = "organizations.title" GSuiteUserID = "id" }).GetEnumerator() | ForEach-Object -Process { $output.($_.Key) | Should Be $_.Value } } } |