public void Parse_ValidFormats_ExpectTheValueToBeOne()
        {
            String[] strings =
            {
                "1",
                " 1 ",
                "  1",
            };

            foreach (string s in strings)
            {
                var h = new SipContentLenghtHeaderParser().Parse(s);
                h.Value.Should().Be(1);
            }
        }
Exemplo n.º 2
0
        public void Parse_ValidFormats_ExpectTheValueToBeOne()
        {
            String[] strings =
            {
                "1",
                " 1 ",
                "  1",
            };


            foreach (string s in strings)
            {
                var h = new SipContentLenghtHeaderParser().Parse(s);
                h.Value.Should().Be(1);
            }
        }