Ejemplo n.º 1
0
        public void FindAll_ReturnsExpected(string text, string pattern, int startIndex, IEnumerable <int> expected)
        {
            var matcher = new LinearStringMatcher();
            var actual  = matcher.FindAll(text, pattern, startIndex).ToList();

            CollectionAssert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void FindFirst_ReturnsExpected(string text, string pattern, int startIndex, int expected)
        {
            var matcher = new LinearStringMatcher();
            int actual  = matcher.FindFirst(text, pattern, startIndex);

            Assert.AreEqual(expected, actual);
        }