public void InsertionTest()
        {
            LabelElement label = new LabelElement("Friends");

            labels.Add(label);

            Assert.AreEqual(1, labels.Count, "Label collection should have size 1 after insertion");
            Assert.AreEqual(0, labels.IndexOf(label), "Index of singleton label should be zero");
            Assert.IsTrue(labels.Contains(label), "Label collection does not contain label after insertion");
        }
Example #2
0
        public void InsertionTest()
        {
            mailItemProperties.Add(MailItemPropertyElement.STARRED);

            Assert.AreEqual(1, mailItemProperties.Count,
                            "Mail item property collection should have size 1 after insertion");
            Assert.AreEqual(0, mailItemProperties.IndexOf(MailItemPropertyElement.STARRED),
                            "Index of singleton mail item property should be zero");
            Assert.IsTrue(mailItemProperties.Contains(MailItemPropertyElement.STARRED),
                          "Mail item property collection does not contain property after insertion");
        }