Beispiel #1
0
        public void can_parse_header(string input, string key, string value)
        {
            var parser = new FrameReader(new MemoryStream());
            var result = parser.ParseHeader(input);

            Assert.AreEqual(key, result.Key, "key");
            Assert.AreEqual(value, result.Value, "value");
        }
Beispiel #2
0
        public void fail_to_parse_invalid_header(string input)
        {
            var parser = new FrameReader(new MemoryStream());

            Assert.Throws <FrameException>(() => parser.ParseHeader(input));
        }