Пример #1
0
            public void CallsCancelEditOnEditableObject()
            {
                var editableObjectMock = new Mock <IEditableObject>();

                EditableObjectHelper.CancelEditObject(editableObjectMock.Object);

                editableObjectMock.Verify(o => o.CancelEdit(), Times.Exactly(1));
            }
Пример #2
0
            public void DoesNotCallCancelEditOnNonEditableObject()
            {
                var objectMock = new Mock <object>();

                EditableObjectHelper.CancelEditObject(objectMock.Object);
            }
Пример #3
0
 public void DoesNotCallCancelEditOnNullObject()
 {
     EditableObjectHelper.CancelEditObject(null);
 }
Пример #4
0
 public void DoesNotCallEndEditOnNullObject()
 {
     EditableObjectHelper.BeginEditObject(null);
 }
Пример #5
0
 public void BeginEdit()
 {
     EditableObjectHelper.BeginEdit(this);
 }
Пример #6
0
 public void EndEdit()
 {
     EditableObjectHelper.EndEdit(this);
 }
Пример #7
0
 public void CancelEdit()
 {
     EditableObjectHelper.CancelEdit(this);
 }