Tests/Get-DiaHtmlSignatureTable.Tests.ps1

BeforeAll {
    . $PSScriptRoot\_InitializeTests.ps1
    . $ProjectRoot\SRC\private\Get-DiaHtmlSignatureTable.ps1
}

Describe Get-DiaHtmlSignatureTable {
    BeforeAll {
        $Images = @{
            "Main_Logo" = "Diagrammer.png"
            "ForestRoot" = "RootDomain.png"
        }
        $Rows = @("Jonathan Colon", "Zen PR Solutions")
        $HTMLSignaturewithLogo = Get-DiaHtmlSignatureTable -ImagesObj $Images -Rows $Rows -Align "Center"  -Logo 'Main_Logo'
        $HTMLSignaturewithLogoDebug = Get-DiaHtmlSignatureTable -ImagesObj $Images -Rows $Rows -Align "Center"  -Logo 'Main_Logo' -IconDebug $true

    }

    It "Should return a multiple column HMLT table with an Logo" {
        $HTMLSignaturewithLogo | Should -BeExactly '<TABLE STYLE="rounded,dashed" border="0" cellborder="0" cellpadding="5"><TR><TD fixedsize="true" width="80" height="80" ALIGN="Center" colspan="1" rowspan="4"><img src="Diagrammer.png"/></TD></TR><TR><TD valign="top" align="Center" colspan="2"><B><FONT POINT-SIZE="14">Jonathan Colon</FONT></B></TD></TR><TR><TD valign="top" align="Center" colspan="2"><B><FONT POINT-SIZE="14">Zen PR Solutions</FONT></B></TD></TR></TABLE>'
    }
    It "Should return a multiple column HMLT table with an Logo in Debug Mode" {
        $HTMLSignaturewithLogoDebug | Should -BeExactly '<TABLE STYLE="rounded,dashed" border="0" cellborder="1" cellpadding="5"><TR><TD fixedsize="true" width="80" height="80" ALIGN="Center" colspan="1" rowspan="4">Logo</TD></TR><TR><TD valign="top" align="Center" colspan="2"><B><FONT POINT-SIZE="14">Jonathan Colon</FONT></B></TD></TR><TR><TD valign="top" align="Center" colspan="2"><B><FONT POINT-SIZE="14">Zen PR Solutions</FONT></B></TD></TR></TABLE>'
    }
}