diff --git a/Tests/FluentEmailer.Core.Tests/MailKitSenderTests.cs b/Tests/FluentEmailer.Core.Tests/MailKitSenderTests.cs index 50332c6..9e9a818 100644 --- a/Tests/FluentEmailer.Core.Tests/MailKitSenderTests.cs +++ b/Tests/FluentEmailer.Core.Tests/MailKitSenderTests.cs @@ -61,7 +61,7 @@ public async Task Should_Send_Email_With_Attachments() const string attachmentContents = "Hey this is some text in an attachment"; using var stream = new MemoryStream(); await using var sw = new StreamWriter(stream); - await sw.WriteLineAsync(attachmentContents); + await sw.WriteAsync(attachmentContents); await sw.FlushAsync(); stream.Seek(0, SeekOrigin.Begin); @@ -86,7 +86,7 @@ public async Task Should_Send_Email_With_Attachments() MessageParts = new[] { new { BodyData = _fixture.Body, HeaderData = "System.Text.ASCIIEncoding+ASCIIEncodingSealed" }, - new { BodyData = attachmentContents + Environment.NewLine, HeaderData = "text/plain; name=mailKitTest.txt" } + new { BodyData = attachmentContents, HeaderData = "text/plain; name=mailKitTest.txt" } } }); }