Checks to see if the passed Item is in Editing mode. If not, it throws an EditingNotAllowedException.
Item
EditingNotAllowedException
Assert.IsEditing(Sitecore.Context.Item);