예제 #1
0
        public void Parse_ValidFormats_ExpectNotToFail()
        {
            String[] strings =
            {
                " \"100\" <sip:[email protected]>;tag=182eb73f4c0f1e61",
                " <sip:[email protected]>;tag=182eb73f4c0f1e61;parameter1=value1",
                " <sip:[email protected]>;tag=182eb73f4c0f1e61  ",
                " <sip:[email protected]> "
            };

            foreach (string s in strings)
            {
                var h = new SipFromHeaderParser().Parse(s);
            }
        }
예제 #2
0
        public void Parse_ValidFormats_ExpectNotToFail()
        {
            String[] strings =
            {
                " \"100\" <sip:[email protected]>;tag=182eb73f4c0f1e61",
                " <sip:[email protected]>;tag=182eb73f4c0f1e61;parameter1=value1",
                " <sip:[email protected]>;tag=182eb73f4c0f1e61  ",
                " <sip:[email protected]> "
            };


            foreach (string s in strings)
            {
                var h = new SipFromHeaderParser().Parse(s);
            }
        }
예제 #3
0
        public override SipHeader Clone()
        {
            var p = new SipFromHeaderParser();

            return(p.Parse(this.FormatBodyToString()));
        }