public void try_encoding_if_in_the_end()
        {
            var sut = new HttpMessage();
            sut.ContentEncoding = Encoding.ASCII;

            sut.AddHeader("content-type", "text/html;charset=utf-8;");

            sut.ContentEncoding.Should().Be(Encoding.UTF8);
        }
        public void try_encoding___no_semicolon()
        {
            var sut = new HttpMessage();
            sut.ContentEncoding = Encoding.ASCII;

            sut.AddHeader("content-type", "text/html;charset=ascii");

            sut.ContentEncoding.Should().Be(Encoding.ASCII);
        }
        public void try_encoding_if_in_the_middle()
        {
            var sut = new HttpMessage();
            sut.ContentEncoding = Encoding.ASCII;

            sut.AddHeader("content-type", "text/html;charset=ISO-8859-1;some=more;");

            sut.ContentEncoding.Should().Be(Encoding.GetEncoding("ISO-8859-1"));
        }