Tests/Get-AdminsAfterChange.Tests.ps1

<#
Get-Module JBOADS | Remove-Module -Force
Push-Location ..
Import-Module JBOADS -Force
Pop-Location
$FunctionName = ($MyInvocation.MyCommand.Name).Split(".")[0]
$JsonMockData = Get-Content -Path .\JBOADS\Tests\MockedTestObjects.json -Raw
$Mocks = ConvertFrom-Json $JsonMockData
$xmlbefore = ".\JBOADS\Tests\adminbefore.xml"
$xmlafter = ".\JBOADS\Tests\adminafter.xml"
 
Describe "$FunctionName Tests" {
 
    Context 'Test with real XML document' {
 
        It "Loads a real XML document" {
            [xml]$xml = Get-Content $xmlbefore
            $xml.OuterXml | Should -Contain "Objs"
        }
    }
    Context 'Function Output' {
 
        It 'should return verbose output' {
            Get-AdminsAfterChange -before $xmlbefore -after $xmlafter -Verbose | Should -Contain 'Verbose'
        }
 
    }
}
#>