public void TestContainsPropDef() { PropDef propDef = new PropDef("prop", typeof(string), PropReadWriteRule.ReadWrite, null); PropDefColInheritor col = new PropDefColInheritor(); Assert.IsFalse(col.GetContains(propDef)); col.Add(propDef); Assert.IsTrue(col.GetContains(propDef)); }
public void TestRemove() { PropDef propDef = new PropDef("prop", typeof(string), PropReadWriteRule.ReadWrite, null); PropDefColInheritor col = new PropDefColInheritor(); col.CallRemove(propDef); col.Add(propDef); Assert.AreEqual(1, col.Count); col.CallRemove(propDef); Assert.AreEqual(0, col.Count); }