Beispiel #1
0
        public void ShouldClearContents()
        {
            using (var buffer = new Buffer())
            {
                buffer.AddUtf8(SimpleText);

                Assert.Equal(SimpleText.Length, buffer.GlyphInfos.Length);

                buffer.ClearContents();

                Assert.Empty(buffer.GlyphInfos);
            }
        }