You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Modernize code base with latest C# features (#69)
* chore: Modernize code base with latest C# features
* Resolve nullability warnings
* Convert != null checks to pattern matching or null-coalescing operators
* Use expression-bodied members where appropriate
* Apply target-typed new expressions
* Use primary constructors where beneficial
* Apply throw expressions in getters/setters
* Use pattern matching in conditional logic
* Simplify property getters/setters
No changes to code logic
Update dependencies to latest versions
Copy file name to clipboardExpand all lines: Src/MailMergeLib.Tests/MessageFactory.cs
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,11 @@ public static MailMergeMessage GetHtmlMailWithInlineAndOtherAttachments()
28
28
// File.ReadAllText will include \r besides \n, while the internal C# representation is only \n
29
29
HtmlText=string.Join("\n",File.ReadAllLines(Path.Combine(TestFileFolders.FilesAbsPath,HtmlTextFile))),// contains image (<img src="..." />) which must be "inline-attached"
Templates={newTemplate("Salutation",newParts{newPart(PartType.Plain,"Hi","Hi {FirstName}"),newPart(PartType.Plain,"Dear","Dear {FirstName}"),newPart(PartType.Plain,"Formal","Dear Sir or Madam")},"Hi")},
0 commit comments