public void Parse_WithWildCard_ExpectTheParsedToBeEqualToTheOriginal() { var original = new SipContactHeaderBuilder() .WithIsWildCard(true).Build(); var bodyString = original.FormatBodyToString(); var parsed = new SipContactHeaderParser().Parse(bodyString); var c = ObjectComparer.Create(); c.Compare(original, parsed); c.Differences.Should().BeEmpty(); }
public void Parse_WithWildCard_ExpectTheParsedToBeEqualToTheOriginal() { var original = new SipContactHeaderBuilder() .WithIsWildCard(true).Build(); var bodyString = original.FormatBodyToString(); var parsed = new SipContactHeaderParser().Parse(bodyString); var c = ObjectComparer.Create(); c.Compare(original, parsed); c.Differences.Should().BeEmpty(); }
public void Parse_ValidFormats_ExpectNotToFail() { String[] strings = { //" <sip:[email protected]>", //" <sip:[email protected];transport=udp>", "<sip:[email protected]:5060;transport=udp>;reg-id=1;+sip.instance=\"<urn:uuid:00000000-0000-1000-8000-000b82240363>\"" }; foreach (string s in strings) { var h = new SipContactHeaderParser().Parse(s); } }
public void Parse_ValidFormats_ExpectNotToFail() { String[] strings = { //" <sip:[email protected]>", //" <sip:[email protected];transport=udp>", "<sip:[email protected]:5060;transport=udp>;reg-id=1;+sip.instance=\"<urn:uuid:00000000-0000-1000-8000-000b82240363>\"" }; foreach (string s in strings) { var h = new SipContactHeaderParser().Parse(s); } }
public override SipHeader Clone() { var p = new SipContactHeaderParser(); return(p.Parse(this.FormatBodyToString())); }
public override SipHeader Clone() { var p = new SipContactHeaderParser(); return p.Parse(this.FormatBodyToString()); }