Exemple #1
0
        public void WhenUndoActionThenRelationWeightIsRevertedDataModel()
        {
            RelationChangeWeightAction action = new RelationChangeWeightAction(_model.Object, _relation.Object, NewWeight);

            action.Undo();

            _model.Verify(x => x.ChangeRelationWeight(_relation.Object, OldWeight), Times.Once());
        }