public void Name()
{
Attachment attach = Attachment.CreateAttachmentFromString("test", "attachment-name");
Assert.Equal("attachment-name", attach.Name);
Attachment a2 = new Attachment(new MemoryStream(), new ContentType("image/jpeg"));
Assert.Equal(null, a2.Name);
a2.Name = null; // nullable
}