2 // AttachmentCollectionTest.cs - NUnit Test Cases for System.Net.MailAddress.AttachmentCollection
5 // John Luke (john.luke@gmail.com)
12 using System.Net.Mail;
13 using System.Net.Mime;
15 namespace MonoTests.System.Net.Mail
18 public class AttachmentCollectionTest
20 AttachmentCollection ac;
24 public void GetReady ()
26 ac = new MailMessage ("foo@bar.com", "foo@bar.com").Attachments;
27 a = Attachment.CreateAttachmentFromString ("test", new ContentType ("text/plain"));
31 public void InitialCount ()
33 Assert.IsTrue (ac.Count == 0);
37 public void AddCount ()
40 Assert.IsTrue (ac.Count == 1);
44 public void RemoveCount ()
47 Assert.IsTrue (ac.Count == 0);