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>(); }
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>(); }