public void AddRangeTest() { Style style = new Style(); StyleItemCollection target = new StyleItemCollection(style); IEnumerable <StyleItemBase> all = GetStdCollection(); target.AddRange(all); Assert.AreEqual(StdCollectionCount, target.Count); }
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); }