Skip to content

Commit b44e89b

Browse files
Fixed unit test
1 parent 2c7423a commit b44e89b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/FluentEmailer.Core.Tests/MailKitSenderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public async Task Should_Send_Email_With_Attachments()
6161
const string attachmentContents = "Hey this is some text in an attachment";
6262
using var stream = new MemoryStream();
6363
await using var sw = new StreamWriter(stream);
64-
await sw.WriteLineAsync(attachmentContents);
64+
await sw.WriteAsync(attachmentContents);
6565
await sw.FlushAsync();
6666
stream.Seek(0, SeekOrigin.Begin);
6767

@@ -86,7 +86,7 @@ public async Task Should_Send_Email_With_Attachments()
8686
MessageParts = new[]
8787
{
8888
new { BodyData = _fixture.Body, HeaderData = "System.Text.ASCIIEncoding+ASCIIEncodingSealed" },
89-
new { BodyData = attachmentContents + Environment.NewLine, HeaderData = "text/plain; name=mailKitTest.txt" }
89+
new { BodyData = attachmentContents, HeaderData = "text/plain; name=mailKitTest.txt" }
9090
}
9191
});
9292
}

0 commit comments

Comments
 (0)