Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Ribeiro committed Aug 16, 2023
1 parent 2c7423a commit b44e89b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/FluentEmailer.Core.Tests/MailKitSenderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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" }
}
});
}
Expand Down

0 comments on commit b44e89b

Please sign in to comment.