Functions/Get-ActiveDirectoryUserPropertyList.Tests.ps1
describe "BitTitan.Runbooks.ActiveDirectory/Get-ActiveDirectoryUserPropertyList" -Tag "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-ActiveDirectoryUserPropertyList.ps1" it "returns a list of properties" { # Call the function $output = Get-ActiveDirectoryUserPropertyList # Verify the output $expected = @( "GivenName", "Surname", "Initials", "Name", "DisplayName", "UserPrincipalName", "StreetAddress", "City", "State", "PostalCode", "Country", "MobilePhone", "HomePhone", "Company", "Department", "Title", "DistinguishedName" ) $output | Should Be $expected } } |