Functions/Get-MSPCompleteUserToExchangeOnlineUserPropertyMap.Tests.ps1
describe "BitTitan.Runbooks.MSPComplete/Get-MSPCompleteUserToExchangeOnlineUserPropertyMap" -Tag "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-MSPCompleteUserToExchangeOnlineUserPropertyMap.ps1" it "returns the list of user properties mapped between MSPComplete and Exchange Online" { # Call the function $output = Get-MSPCompleteUserToExchangeOnlineUserPropertyMap # Verify the output (@{ FirstName = "FirstName" LastName = "LastName" DisplayName = "DisplayName" FullName = "Name" PrimaryEmailAddress = "UserPrincipalName" UserPrincipalName = "UserPrincipalName" }).GetEnumerator() | ForEach-Object -Process { $output.($_.Key) | Should Be $_.Value } } } |