public void Should_return_true_if_strings_exactly_match() { var input = "Hello"; var matches = "Hello"; StringMatching.Matches(input, matches).Should().BeTrue(); }
public void Matches_should_be_case_insensitive() { var input = "Hello"; var ignoreCaseMatch = "HELLO"; StringMatching.Matches(input, ignoreCaseMatch).Should().BeTrue(); }
public void Should_return_false_if_strings_dont_exactly_match() { var input = "Hello"; var doesntMatch = "Bye"; StringMatching.Matches(input, doesntMatch).Should().BeFalse(); }
public IActivityAssertions TypeIs(string activityType) { if (!StringMatching.Matches(_activity.Type, activityType)) { ThrowMatchException(nameof(_activity.Type), activityType, _activity.Type); } return(this); }
public IActivityAssertions IdIs(string id) { if (!StringMatching.Matches(_activity.Id, id)) { ThrowMatchException(nameof(_activity.Id), id, _activity.Id); } return(this); }
public IActivityAssertions ChannelIdIs(string channelId) { if (!StringMatching.Matches(_activity.ChannelId, channelId)) { ThrowMatchException(nameof(_activity.ChannelId), channelId, _activity.ChannelId); } return(this); }
public IMessageAssertions SummaryIs(string shouldMatch) { if (!StringMatching.Matches(_message.Summary, shouldMatch)) { ThrowMatchException(nameof(_message.Summary), shouldMatch, _message.Summary); } return(this); }
public IMessageAssertions TextIs(string shouldMatch) { if (!StringMatching.Matches(_message.Text, shouldMatch)) { ThrowMatchException(nameof(_message.Text), shouldMatch, _message.Text); } return(this); }