Fix pipeline test where SmtpServer key was set wrong in pipeline object (#7745)

Fix SmtpServer key (was $SmtpServer) in hashtable object.
Removed double quotes for all keys in hashtable object.
This commit is contained in:
ThreeFive-O
2018-09-11 09:29:10 +05:00
committed by Ilya
parent 4e98f244fd
commit 32cdbe688e
@@ -157,7 +157,7 @@ Describe "Basic Send-MailMessage tests" -Tags CI {
It @ItArgs {
$body = "Greetings from me again."
$subject = "Second test message"
$object = [PSCustomObject]@{"To" = $address; "From" = $address; "Subject" = $subject; "Body" = $body; $SmtpServer = '127.0.0.1'}
$object = [PSCustomObject]@{To = $address; From = $address; Subject = $subject; Body = $body; SmtpServer = '127.0.0.1'}
$object | Send-MailMessage
Test-Path -Path $mailBox | Should -BeTrue
$mail = read-mail $mailBox