Esempio n. 1
0
        public void SourceText_NextCharacterGroup(string text, int start, string expectedResult, int expectedCursorLocation)
        {
            var source    = new SourceText(text.AsMemory(), start);
            var nextGroup = source.NextCharacterGroup();

            Assert.AreEqual(expectedResult, nextGroup.ToString());
            Assert.AreEqual(expectedCursorLocation, source.Cursor);
        }