Assert.AreEqual("this_is_filename", part.FileName);
Assert.AreEqual("this_is_name", part.Name);
Assert.IsTrue(part.IsBinary);
Assert.AreEqual("Base64", part.ContentTransferEncoding);
Assert.AreEqual("application/octet-stream", part.ContentType);
var bytes = (byte[])part.GetData();
var stringContent = Encoding.UTF8.GetString(bytes);
Assert.AreEqual("Hello This is a content", stringContent);
Base64 supports in
Content-Transfer-Encoding
. No difference in API.