コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }