Esempio n. 1
0
        private static void AssertWordEndIndex(string value, string word)
        {
            int startIndex = value.IndexOf(word);

            Assert.AreNotEqual(-1, startIndex);

            int endIndex = startIndex + word.Length;

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