public void SetsNewValue() { var action = new ActionUndo(this, () => MockModel.Change("previousValue"), () => MockModel.Change("nextValue")); action.Redo(); Assert.AreEqual("nextValue", MockModel.Name); }
public void ThrowsArgumentNullExceptionForNullInstance() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => new ActionUndo(null, () => MockModel.Change("test"))); }