public void Parse_WithLooseRouting_ExpectTheParsedToBeEqualToTheOriginal()
        {
            var original = new SipRecordRouteHeader();
            original.SipUri = new SipUriBuilder().WithLoooseRouting(true).Build();

            var bodyString = original.FormatBodyToString();

            var parsed = new SipRecordRouteHeaderParser().Parse(bodyString);

            var c = ObjectComparer.Create();
            c.Compare(original, parsed);
            c.Differences.Should().BeEmpty();
        }
        public void Parse_ValidFormats_ExpectNotToFail()
        {
            String[] strings =
            {
                " <sip:[email protected];lr>",
                "<sip:[email protected];lr>",
            };

            foreach (string s in strings)
            {
                var h = new SipRecordRouteHeaderParser().Parse(s);
            }
        }
        public void Parse_ValidFormats_ExpectNotToFail()
        {
            String[] strings =
            {
                " <sip:[email protected];lr>",
                "<sip:[email protected];lr>",
            };


            foreach (string s in strings)
            {
                var h = new SipRecordRouteHeaderParser().Parse(s);
            }
        }
        public void Parse_WithLooseRouting_ExpectTheParsedToBeEqualToTheOriginal()
        {
            var original = new SipRecordRouteHeader();

            original.SipUri = new SipUriBuilder().WithLoooseRouting(true).Build();

            var bodyString = original.FormatBodyToString();

            var parsed = new SipRecordRouteHeaderParser().Parse(bodyString);

            var c = ObjectComparer.Create();

            c.Compare(original, parsed);
            c.Differences.Should().BeEmpty();
        }