public void SaveTest()
        {
            mailItemProperty = MailItemPropertyElement.SENT;

            StringBuilder sb = new StringBuilder();
            XmlWriter writer = new XmlTextWriter(new StringWriter(sb));
            mailItemProperty.Save(writer);
            writer.Close();

            Assert.AreEqual(xmlElementAsText, sb.ToString(),
                "Saved XML form of MailItemPropertyElement does not match expected value");
        }
 /// <summary>standard typed Contains method </summary> 
 public bool Contains(MailItemPropertyElement value)
 {
     // If value is not of type AtomEntry, this will return false.
     return (List.Contains(value));
 }
 /// <summary>standard typed remove method </summary> 
 public void Remove(MailItemPropertyElement value)
 {
     base.Remove(value);
 }
 /// <summary>standard typed insert method </summary>
 public void Insert(int index, MailItemPropertyElement value)
 {
     base.Insert(index, value);
 }
 /// <summary>standard typed indexOf method </summary>
 public int IndexOf(MailItemPropertyElement value)
 {
     return (List.IndexOf(value));
 }
 /// <summary>standard typed add method </summary>
 public int Add(MailItemPropertyElement value)
 {
     return base.Add(value);
 }
 public void SetValueTest()
 {
     mailItemProperty = new MailItemPropertyElement(MailItemPropertyElement.MailItemProperty.IS_TRASH);
     Assert.AreEqual("IS_TRASH", mailItemProperty.Value.ToString(),
         "Mail item property's value should be IS_TRASH");
 }
 public void Init()
 {
     mailItemProperty = MailItemPropertyElement.DRAFT;
 }