SIPSorcery.SIP.SIPFromHeader.SIPFromHeaderUnitTest.ParseFromHeaderNoUserTest C# (CSharp) Method

ParseFromHeaderNoUserTest() private method

private ParseFromHeaderNoUserTest ( ) : void
return void
            public void ParseFromHeaderNoUserTest()
            {
                Console.WriteLine("--> " + System.Reflection.MethodBase.GetCurrentMethod().Name);

                string testFromHeader = "<sip:sip.domain.com>;tag=as6900b876";

                SIPFromHeader sipFromHeader = SIPFromHeader.ParseFromHeader(testFromHeader);

                Assert.IsTrue(sipFromHeader.FromName == null, "The From header name was not parsed correctly.");
                Assert.IsTrue(sipFromHeader.FromURI.ToString() == "sip:sip.domain.com", "The From header URI was not parsed correctly.");
                Assert.IsTrue(sipFromHeader.FromTag == "as6900b876", "The From header Tag was not parsed correctly.");
            }