public void TestNull()
        {
            Regex expression = new Regex("^[a-z]+$");

            LineNotMatchingMatcher matcher = new LineNotMatchingMatcher(expression);

            Assert.Throws<ArgumentNullException>(() => matcher.Match(null));
        }
        public void TestDoesNotMatchLineWithMultipleMatches()
        {
            Regex expression = new Regex("[a-z]");

            const string line = "abc";

            LineNotMatchingMatcher matcher = new LineNotMatchingMatcher(expression);

            IList<ColumnMatch> results = matcher.Match(line).ToList();

            Assert.AreEqual(0, results.Count());
        }
        public void TestMatchesLine()
        {
            Regex expression = new Regex("^[a-z]+$");

            const string line = "abc1";

            LineNotMatchingMatcher matcher = new LineNotMatchingMatcher(expression);

            IList<ColumnMatch> results = matcher.Match(line).ToList();

            Assert.AreEqual(1, results.Count());

            Assert.AreEqual(0, results[0].Column);
            Assert.AreEqual(0, results[0].Length);
        }