public void LineContainsMultiplePositions()
        {
            ILineMatcher lineMatcher = new LineMatcher.LineContains("Test");
            Reader reader = Reader.CreateStringReader("Test\nTest\nTest");
            AssertDoesMatch(lineMatcher, reader, 0,1,2);
            AssertDoesNotMatch(lineMatcher, reader, 3);

            Assert.That(reader.ReadLine(), Is.EqualTo("Test"));
            AssertDoesMatch(lineMatcher, reader, 0, 1);
            AssertDoesNotMatch(lineMatcher, reader, 2);

            Assert.That(reader.ReadLine(), Is.EqualTo("Test"));
            AssertDoesMatch(lineMatcher, reader, 0);
            AssertDoesNotMatch(lineMatcher, reader, 1);

            Assert.That(reader.ReadLine(), Is.EqualTo("Test"));
            AssertDoesNotMatch(lineMatcher, reader, 0);
        }
        public void LineContainsMultiplePositions()
        {
            ILineMatcher lineMatcher = new LineMatcher.LineContains("Test");
            Reader       reader      = Reader.CreateStringReader("Test\nTest\nTest");

            AssertDoesMatch(lineMatcher, reader, 0, 1, 2);
            AssertDoesNotMatch(lineMatcher, reader, 3);

            Assert.That(reader.ReadLine(), Is.EqualTo("Test"));
            AssertDoesMatch(lineMatcher, reader, 0, 1);
            AssertDoesNotMatch(lineMatcher, reader, 2);

            Assert.That(reader.ReadLine(), Is.EqualTo("Test"));
            AssertDoesMatch(lineMatcher, reader, 0);
            AssertDoesNotMatch(lineMatcher, reader, 1);

            Assert.That(reader.ReadLine(), Is.EqualTo("Test"));
            AssertDoesNotMatch(lineMatcher, reader, 0);
        }