2 // AttachmentCollectionTest.cs - NUnit Test Cases for System.Net.MailAddress.AttachmentCollection
5 // John Luke (john.luke@gmail.com)
10 using NUnit.Framework;
13 using System.Net.Mail;
14 using System.Net.Mime;
16 namespace MonoTests.System.Net.Mail
19 public class AttachmentCollectionTest
21 AttachmentCollection ac;
25 public void GetReady ()
27 ac = new MailMessage ("foo@bar.com", "foo@bar.com").Attachments;
28 a = Attachment.CreateAttachmentFromString ("test", new ContentType ("text/plain"));
32 public void InitialCount ()
34 Assert.IsTrue (ac.Count == 0);
38 public void AddCount ()
41 Assert.IsTrue (ac.Count == 1);
45 public void RemoveCount ()
48 Assert.IsTrue (ac.Count == 0);