sitecore Ensure item is in editing mode


Example

Checks to see if the passed Item is in Editing mode. If not, it throws an EditingNotAllowedException.

Assert.IsEditing(Sitecore.Context.Item);