Functions/Get-ExchangeOnlineContactPropertyList.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
describe "BitTitan.Runbooks.ExchangeOnline/Get-ExchangeOnlineContactPropertyList" -Tag "module", "unit" {

    # Import the function to test
    . "$($PSScriptRoot)\Get-ExchangeOnlineContactPropertyList.ps1"

    it "returns the list of properties" {
        # Call the function
        $output = Get-ExchangeOnlineContactPropertyList

        # Verify the output
        $output | Should Be @(
            "FirstName",
            "LastName",
            "Company",
            "Phone",
            "MobilePhone",
            "Title",
            "WebPage",
            "Fax",
            "StreetAddress",
            "City",
            "StateOrProvince",
            "PostalCode",
            "CountryOrRegion"
        )
    }
}