Esempio n. 1
0
        public void AddRangeTest()
        {
            Style style = new Style();
            StyleItemCollection         target = new StyleItemCollection(style);
            IEnumerable <StyleItemBase> all    = GetStdCollection();

            target.AddRange(all);
            Assert.AreEqual(StdCollectionCount, target.Count);
        }
Esempio n. 2
0
        public void ContainsTest()
        {
            Style style = new Style();
            StyleItemCollection         target = new StyleItemCollection(style);
            IEnumerable <StyleItemBase> all    = GetStdCollection();

            target.AddRange(all);
            Assert.AreEqual(StdCollectionCount, target.Count);


            StyleItemBase item     = new Scryber.Styles.FillStyle();
            bool          expected = false;
            bool          actual   = target.Contains(item);

            Assert.AreEqual(expected, actual);
        }