public void CanAdd_WhenTitleIsNotEmpty_IsTrue()
        {
            _fakeAction = AnAction.Called("This action has a title").Mock();

            InputPresenter test = BuildDefaultInputViewPresenter();

            Assert.True(test.CanAdd());
        }
        public void Add_WhenTitleIsNotEmpty_AddsItemToInbox()
        {
            InputPresenter test = BuildDefaultInputViewPresenter();

            test.Add();

            _fakeWorkspace.Verify(x => x.Add(_fakeAction.Object));
        }
        public void CanAdd_WhenTitleIsEmpty_IsFalse()
        {
            _fakeAction = AnAction.Called(string.Empty).Mock();

            InputPresenter test = BuildDefaultInputViewPresenter();

            Assert.False(test.CanAdd());
        }
        public void Constructor__SetsActionStateToInbox()
        {
            InputPresenter test = BuildDefaultInputViewPresenter();

            _fakeAction.VerifySet(x => x.ActionState = State.Inbox);
        }
        public void Action__ReturnsAction()
        {
            InputPresenter test = BuildDefaultInputViewPresenter();

            Assert.Same(_fakeAction.Object, test.Action);
        }