Ejemplo n.º 1
0
        public void TypeMatching_should_throw_CardActionAssertionFailedException_when_type_of_all_card_actions_is_null()
        {
            var cardActions = CardActionTestData.CreateCardActionSetWithAllActionsWithSetProperties(type: null);

            var sut = new CardActionSetAssertions(cardActions);

            Action act = () => sut.ActionType(CardActionType.Call);

            act.ShouldThrow <CardActionAssertionFailedException>();
        }
Ejemplo n.º 2
0
        public void TypeMatching_should_not_throw_when_card_action_type_matches_expected_type()
        {
            var cardActions = CardActionTestData.CreateCardActionSetWithOneActionThatHasSetProperties(type: CallTypeString);

            var sut = new CardActionSetAssertions(cardActions);

            Action act = () => sut.ActionType(CallType);

            act.ShouldNotThrow <Exception>();
        }
Ejemplo n.º 3
0
        public void TypeMatching_should_throw_CardActionAssertionSetFailedException_when_no_card_action_matches()
        {
            var cardActions = CardActionTestData.CreateCardActionSetWithAllActionsWithSetProperties(type: CallTypeString);

            var sut = new CardActionSetAssertions(cardActions);

            Action act = () => sut.ActionType(CardActionType.DownloadFile);

            act.ShouldThrow <CardActionAssertionFailedException>();
        }