Example #1
0
            public void SetsNewValue()
            {
                var action = new ActionUndo(this, () => MockModel.Change("previousValue"), () => MockModel.Change("nextValue"));

                action.Redo();
                Assert.AreEqual("nextValue", MockModel.Name);
            }
Example #2
0
 public void ThrowsArgumentNullExceptionForNullInstance()
 {
     ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => new ActionUndo(null, () => MockModel.Change("test")));
 }