Exemplo 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>();
        }
Exemplo n.º 2
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>();
        }