示例#1
0
 public void RemoveTest()
 {
     using (WebActionExecutor executor = new WebActionExecutor()) {
         IContentContainer container = getContainer();
         TestContentType   c         = TestContentType.getARandomTestContentType(enforce_a_reference: false);
         container.Add(c);
         Assert.IsTrue(container.Remove(c));
         c = TestContentType.getARandomTestContentType(enforce_a_reference: false);
         Assert.IsFalse(container.Remove(c));
         Assert.AreEqual(container.Count, 0);
     }
 }
 public bool Remove(IContent item)
 {
     return(_storage.Remove(item));
 }