예제 #1
0
        public void WhenDoActionThenElementNameIsChangedDataModel()
        {
            ElementChangeNameAction action = new ElementChangeNameAction(_model.Object, _element.Object, NewName);

            action.Do();

            _model.Verify(x => x.ChangeElementName(_element.Object, NewName), Times.Once());
        }