public void GreaterThanOrEqualM_MultiDigit_RegexMatches_Self() { string pattern = GetNumberRangePattern.ForGreaterThanOrEqualMagnitude(8765); string matchTo = "8765"; var match = Regex.Match(matchTo, pattern); Assert.IsTrue(match.Success); Assert.AreEqual(matchTo, match.Value); }
public void GreaterThanOrEqualM_0_RegexMatches_0() { string pattern = GetNumberRangePattern.ForGreaterThanOrEqualMagnitude(0); string matchTo = "0"; var match = Regex.Match(matchTo, pattern); Assert.IsTrue(match.Success); Assert.AreEqual(matchTo, match.Value); }