mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366)
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user