コード例 #1
0
        public void ODtextBox_SpellCheck_GetVisibleCharIndices()
        {
            ODtextBox textBox = GetTextBox("abc" + "\n" + "def" + "\n" + "ghi");

            //Test the Function
            ODtextBox.CharBounds indexes = textBox.GetVisibleCharIndices();
            Assert.AreEqual(0, indexes.StartCharIndex);
            Assert.AreEqual(textBox.TextLength - 1, indexes.EndCharIndex);
        }