Tests/Add-DiaNodeFiller.Tests.ps1

BeforeAll {
    . $PSScriptRoot\_InitializeTests.ps1
    . $ProjectRoot\SRC\private\Add-DiaNodeFiller.ps1
}

Describe Add-DiaNodeFiller {
    BeforeAll {
        $HTMLOutPut = Add-DiaNodeFiller
        $HTMLOutPutDebug = Add-DiaNodeFiller -IconDebug $true
    }

    It "Should return a HTML table with BlankFiller.png icon" {
        $HTMLOutPut | Should -BeExactly "<TABLE border='0' cellborder='0' cellspacing='5' cellpadding='5'><TR><TD ALIGN='Center' colspan='1'><img src='BlankFiller.png'/></TD></TR></TABLE>"
    }
    It "Should return a HTML table with BlankFiller.png icon with IconDebug Enabled" {
        $HTMLOutPutDebug | Should -BeExactly "<TABLE color='red' border='1' cellborder='1' cellspacing='5' cellpadding='5'><TR><TD ALIGN='Center' colspan='1'>Spacer</TD></TR></TABLE>"
    }
}