public void CannotExecute() { int expectedCount = _actualCount; var sut = new CommandDisableAble <int>( o => false, _actionToExecute); sut.Execute(1); bool actualResult = sut.CanExecute(1); Assert.AreEqual(expected: false, actualResult); Assert.AreEqual(expectedCount, _actualCount); }
public void CanExecute() { var actualResult = _sut.CanExecute(_parameters); Assert.AreEqual(expected: true, actualResult); }