public void Should_MatchIgnoreCase_IfNotRegex(string pattern, string input, bool expected) { var p = new MaybeRegex(pattern); // Act var match = p.IsMatch(input); // Assert match.Should().BeTrue(); }
public void Should_MatchWithRegex_IfIsRegex(string pattern, string input, bool expected) { // Arrange var p = new MaybeRegex(pattern); // Act var match = p.IsMatch(input); // Assert match.Should().Be(expected); }