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

                buffer.Reset();

                Assert.Equal(ContentType.Invalid, buffer.ContentType);

                Assert.Equal(0, buffer.Length);
            }
        }