Skip to content

Instantly share code, notes, and snippets.

@iainbrighton
iainbrighton / OutHtml.Tests.ps1
Created February 26, 2020 11:42
OutHtml.Tests.ps1
It 'creates paragraph with embedded new line' {
$expected = '<div>Embedded<br />New Line</div>';
$paragraphText = 'Embedded{0}New Line' -f [System.Environment]::NewLine
$result = Paragraph $paragraphText | OutHtmlParagraph;
$result | Should BeExactly $expected;
}
It 'creates a tabular table cell with an embedded new line' {
$licenses = 'Standard{0}Professional{0}Enterprise' -f [System.Environment]::NewLine