예제 #1
0
        private static void AssertWordStartIndex(string value, string word)
        {
            int startIndex = value.IndexOf(word);

            Assert.AreNotEqual(-1, startIndex);

            int endIndex = startIndex + word.Length;

            for (int i = startIndex + 1; i <= endIndex; ++i)
            {
                Assert.AreEqual(startIndex, CStringUtils.StartOfTheWord(value, i), "\"" + word + "\":" + i);
            }
        }