public void should_delete_the_object() { var container = new MockCFContainer("testcontainername"); container.AddObject(Constants.STORAGE_ITEM_NAME); Assert.That(container.ObjectExists(Constants.STORAGE_ITEM_NAME), Is.True); container.DeleteObject(Constants.STORAGE_ITEM_NAME); Assert.That(container.ObjectExists(Constants.STORAGE_ITEM_NAME), Is.False); }
public void should_throw_storage_item_not_found_exception() { var container = new MockCFContainer("testcontainername"); container.DeleteObject(Constants.STORAGE_ITEM_NAME); Assert.Fail("Allowed deletion of non-existant object"); }