File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/FluentEmailer.Core.Tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public async Task Should_Send_Email_With_Attachments()
61
61
const string attachmentContents = "Hey this is some text in an attachment" ;
62
62
using var stream = new MemoryStream ( ) ;
63
63
await using var sw = new StreamWriter ( stream ) ;
64
- await sw . WriteLineAsync ( attachmentContents ) ;
64
+ await sw . WriteAsync ( attachmentContents ) ;
65
65
await sw . FlushAsync ( ) ;
66
66
stream . Seek ( 0 , SeekOrigin . Begin ) ;
67
67
@@ -86,7 +86,7 @@ public async Task Should_Send_Email_With_Attachments()
86
86
MessageParts = new [ ]
87
87
{
88
88
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" }
90
90
}
91
91
} ) ;
92
92
}
You can’t perform that action at this time.
0 commit comments