public void Must_parse_correctly(string headerValue, string hash) { ContentMd5Header header = ContentMd5Header.Parse(headerValue); Assert.That(header, Is.Not.Null); Assert.That(header.Md5Digest, Is.EquivalentTo(hash.Select(arg => (byte)arg))); }
public void Must_not_result_in_header(string headerValue) { Assert.That(ContentMd5Header.Parse(headerValue), Is.Null); }