public void EncodeShouldSucceed() { var headers = Headers(); var buf = Unpooled.Buffer(); try { encoder.EncodeHeaders(3 /* randomly chosen */, headers, buf); Assert.True(buf.WriterIndex > 0); } finally { buf.Release(); } }
private void AssertRoundtripSuccessful(IHttp2Headers input) { encoder.EncodeHeaders(3 /* randomly chosen */, input, buffer); IHttp2Headers output = decoder.DecodeHeaders(0, buffer); Assert.Equal(input, output); }