public void Must_parse_correctly(string headerValue)
            {
                AcceptCharsetHeader[] headers = AcceptCharsetHeader.ParseMany(headerValue).ToArray();

                Assert.That(headers, Has.Length.EqualTo(2));

                Assert.That(headers[0].Charset, Is.EqualTo("utf-8"));
                Assert.That(headers[0].Qvalue, Is.EqualTo(1m));
                Assert.That(headers[0].EffectiveQvalue, Is.EqualTo(1m));

                Assert.That(headers[1].Charset, Is.EqualTo("utf-16"));
                Assert.That(headers[1].Qvalue, Is.Null);
                Assert.That(headers[1].EffectiveQvalue, Is.EqualTo(1m));
            }
 public void Must_not_result_in_header(string headerValue)
 {
     Assert.That(AcceptCharsetHeader.ParseMany(headerValue), Is.Empty);
 }
            public void Must_not_match(string headerValue, string charset)
            {
                AcceptCharsetHeader header = AcceptCharsetHeader.ParseMany(headerValue).Single();

                Assert.That(header.CharsetMatches(charset), Is.False);
            }