public void TestFindEndsWithFirstLinesIndex()
        {
            var array = new ArrayList { "line first", "line second" };

            var result = array.IndexOfLineEndingWith("first");

            Assert.AreEqual(0, result);
        }
        public void TestFindEndsWithSecondLinesIndexAfterIndex()
        {
            var array = new ArrayList { "line first", "line second", "line third" };

            var result = array.IndexOfLineEndingWith("second", 1);

            Assert.AreEqual(1, result);
        }
        public void TestFindEndsWithThirdLinesIndexNotFoundAfterIndex()
        {
            var array = new ArrayList { "line first", "line second" };

            var result = array.IndexOfLineEndingWith("third", 3);

            Assert.AreEqual(-1, result);
        }