Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366)

This commit is contained in:
Klaudia Algiz authored and Travis Plunk committed 2018-03-23 10:26:23 -07:00
1 parent 942832c13a
commit cc3ffd8349
111 files changed
+2491 -3092

No files matched your search

@@ -137,13 +137,13 @@ Describe "Basic Send-MailMessage tests" -Tags CI {
$body = "Greetings from me."
$subject = "Test message"
Send-MailMessage -To $address -From $address -Subject $subject -Body $body -SmtpServer 127.0.0.1
Test-Path -Path $mailBox | Should Be $true
Test-Path -Path $mailBox | Should -BeTrue
$mail = read-mail $mailBox
$mail.From | Should BeExactly $address
$mail.To.Count | Should BeExactly 1
$mail.To[0] | Should BeExactly $address
$mail.Subject | Should BeExactly $subject
$mail.Body.Count | Should BeExactly 1
$mail.Body[0] | Should BeExactly $body
$mail.From | Should -BeExactly $address
$mail.To.Count | Should -BeExactly 1
$mail.To[0] | Should -BeExactly $address
$mail.Subject | Should -BeExactly $subject
$mail.Body.Count | Should -BeExactly 1
$mail.Body[0] | Should -BeExactly $body
}
}