Esempio n. 1
0
        public void CacheThreeSingleLines_ShouldCacheThreeLines()
        {
            collection.Add(VisualTextLine.Create("asdf", 0));
            collection.Add(VisualTextLine.Create("{", 1));
            collection.Add(VisualTextLine.Create("", 2));
            collection.Add(VisualTextLine.Create("}", 3));

            var cachedResult = collection.ConvertToCachedLines(3, 1);

            Assert.AreEqual(cachedResult.Count, 3);
            Assert.AreEqual(cachedResult[0].RenderedText, "{");
            Assert.AreEqual(cachedResult[1].RenderedText, "");
            Assert.AreEqual(cachedResult[2].RenderedText, "}");
        }