public void CallsCancelEditOnEditableObject() { var editableObjectMock = new Mock <IEditableObject>(); EditableObjectHelper.CancelEditObject(editableObjectMock.Object); editableObjectMock.Verify(o => o.CancelEdit(), Times.Exactly(1)); }
public void DoesNotCallCancelEditOnNonEditableObject() { var objectMock = new Mock <object>(); EditableObjectHelper.CancelEditObject(objectMock.Object); }
public void DoesNotCallCancelEditOnNullObject() { EditableObjectHelper.CancelEditObject(null); }
public void DoesNotCallEndEditOnNullObject() { EditableObjectHelper.BeginEditObject(null); }
public void BeginEdit() { EditableObjectHelper.BeginEdit(this); }
public void EndEdit() { EditableObjectHelper.EndEdit(this); }
public void CancelEdit() { EditableObjectHelper.CancelEdit(this); }