System.Net.Mail.Tests.AttachmentTest.Name C# (CSharp) Method

Name() private method

private Name ( ) : void
return void
        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
        }