コード例 #1
0
        public ICardImageAssertions UrlMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelpers.TestSetForMatch(CardImages, cardImage => cardImage.That().UrlMatching(regex), CreateEx(nameof(CardImage.Url), regex));

            return(this);
        }
コード例 #2
0
        public ICardActionAssertions TitleMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelpers.TestSetForMatch(CardActions, action => action.That().TitleMatching(regex), CreateEx(nameof(CardAction.Title), regex));

            return(this);
        }
コード例 #3
0
        public IReceiptItemAssertions TitleMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelpers.TestSetForMatch(ReceiptItems, item => item.That().TitleMatching(regex), CreateEx(nameof(ReceiptItem.Title), regex));

            return(this);
        }
コード例 #4
0
        public IThumbnailCardAssertions SubtitleMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelpers.TestSetForMatch(ThumbnailCards, card => card.That().SubtitleMatching(regex), CreateEx(nameof(ThumbnailCard.Subtitle), regex));

            return(this);
        }
コード例 #5
0
        public IFactAssertions KeyMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelper.TestSetForMatch(Facts, fact => fact.That().KeyMatching(regex), CreateEx(nameof(Fact.Key), regex));

            return(this);
        }
コード例 #6
0
        public IActivityAssertions FromMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelpers.TestSetForMatch(_messageSet, msg => msg.Should().FromMatching(regex), CreateEx(nameof(Activity.From), regex));

            return(this);
        }
コード例 #7
0
        public ISigninCardAssertions TextMatching(string regex)
        {
            if (regex == null)
            {
                throw new ArgumentNullException(nameof(regex));
            }

            _setHelpers.TestSetForMatch(SigninCards, card => card.That().TextMatching(regex), CreateEx(nameof(SigninCard.Text), regex));

            return(this);
        }