public void IsMatch_returns_false_when_nonnumeric_input_is_checked_for_numbers() { // arrange var input = "some alpha string without numbers"; var pattern = @"\d"; var regex = new Blobby.Utils.Regex(); // act var isMatch = regex.IsMatch(input, pattern); // assert Assert.False(isMatch); }
public void IsMatch_returns_true_for_numeric_input() { // arrange var input = "123456"; var pattern = @"\d"; var regex = new Blobby.Utils.Regex(); // act var isMatch = regex.IsMatch(input, pattern); // assert Assert.True(isMatch); }