Functions/Get-MSPCompleteUserToActiveDirectoryUserPropertyMap.Tests.ps1
describe "BitTitan.Runbooks.MSPComplete/Get-MSPCompleteUserToActiveDirectoryUserPropertyMap" -Tags "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-MSPCompleteUserToActiveDirectoryUserPropertyMap.ps1" it "returns the list of user extended properties mapped between MSPComplete and Active Directory" { # Call the function $output = Get-MSPCompleteUserToActiveDirectoryUserPropertyMap # Verify the output (@{ FirstName = "givenName" LastName = "sn" DisplayName = "displayName" FullName = "name" PrimaryEmailAddress = "mail" UserPrincipalName = "UserPrincipalName" }).GetEnumerator() | ForEach-Object -Process { $output.($_.Key) | Should Be $_.Value } } } |