//[Test]
        public void TestCharPositionToNonSpaceCharCount()
        {
            // \tb = a + 3;
            // \t    c\t = a + \t b;
            TextBuffer   textBuffer = new TextBuffer("\tb = a + 3;\n\t    c\t = a + \t b;");
            CharPosition position   = new CharPosition(textBuffer);

            position.SetCharacterPosition(0, 0);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(1, 0);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(2, 0);
            Assert.AreEqual(1, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(8, 0);
            Assert.AreEqual(4, position.ToNonSpaceCharCount());

            position.SetCharacterPosition(0, 1);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(5, 1);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(6, 1);
            Assert.AreEqual(1, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(17, 1);
            Assert.AreEqual(5, position.ToNonSpaceCharCount());
        }
        public void TestCharPositionToNonSpaceCharCount()
        {
            // \tb = a + 3;
            // \t    c\t = a + \t b;
            TextBuffer textBuffer = new TextBuffer("\tb = a + 3;\n\t    c\t = a + \t b;");
            CharPosition position = new CharPosition(textBuffer);

            position.SetCharacterPosition(0, 0);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(1, 0);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(2, 0);
            Assert.AreEqual(1, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(8, 0);
            Assert.AreEqual(4, position.ToNonSpaceCharCount());

            position.SetCharacterPosition(0, 1);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(5, 1);
            Assert.AreEqual(0, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(6, 1);
            Assert.AreEqual(1, position.ToNonSpaceCharCount());
            position.SetCharacterPosition(17, 1);
            Assert.AreEqual(5, position.ToNonSpaceCharCount());
        }