Example #1
0
        public void IntSimpleTest()
        {
            var expression = @"(123+";
            var target     = "123";
            var matchIndex = 1;

            var number = ExpressionRegex.GetNextNumber(expression);

            Assert.AreEqual(number.Item1, target);
            Assert.AreEqual(number.Item2, matchIndex);
        }
Example #2
0
        public void ScientificNotationTest2()
        {
            var expression = @"(.23456E-10+";
            var target     = ".23456E-10";
            var matchIndex = 1;

            var number = ExpressionRegex.GetNextNumber(expression);

            Assert.AreEqual(number.Item1, target);
            Assert.AreEqual(number.Item2, matchIndex);
        }