public void TestConstructor_SetsCanExecuteCommand(bool input) { var objectUnderTest = new TestProtectedCommandBase(input); Assert.AreEqual(input, objectUnderTest.CanExecuteCommand); Assert.AreEqual(input, objectUnderTest.CanExecute(null)); }
public void TestSetCanExecuteCommand_UpdatesCanExecute() { var objectUnderTest = new TestProtectedCommandBase(false); objectUnderTest.CanExecuteCommand = true; Assert.IsTrue(objectUnderTest.CanExecute(null)); }