public void ShouldReverseRange() { using (var buffer = new Buffer()) { buffer.AddUtf8("123"); buffer.ReverseRange(0, 2); Assert.Equal(50u, buffer.GlyphInfos[0].Codepoint); Assert.Equal(1u, buffer.GlyphInfos[0].Cluster); Assert.Equal(49u, buffer.GlyphInfos[1].Codepoint); Assert.Equal(0u, buffer.GlyphInfos[1].Cluster); Assert.Equal(51u, buffer.GlyphInfos[2].Codepoint); Assert.Equal(2u, buffer.GlyphInfos[2].Cluster); } }