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

ContentStream() private method

private ContentStream ( ) : void
return void
        public void ContentStream()
        {
            Attachment attach = Attachment.CreateAttachmentFromString("test", "attachment-name");
            Assert.NotNull(attach.ContentStream);
            Assert.Equal(4, attach.ContentStream.Length);
        }