Exemplo n.º 1
0
        public void AnCorrectInput()
        {
            var header = new HeaderContent().Match("Accept: asd");

            Assert.True(header.IsSuccesful());
            Assert.Equal(" asd", header.RemainingText());
        }
Exemplo n.º 2
0
        public void InputWithMiddleLine()
        {
            var header = new HeaderContent().Match("Accept-Language:");

            Assert.True(header.IsSuccesful());
            Assert.Equal("", header.RemainingText());
        }