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

ParseFromHeaderNoTagTest() private method

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

                string testFromHeader = "User <sip:[email protected]>";

                SIPFromHeader sipFromHeader = SIPFromHeader.ParseFromHeader(testFromHeader);

                Assert.IsTrue(sipFromHeader.FromName == "User", "The From header name was not parsed correctly.");
                Assert.IsTrue(sipFromHeader.FromURI.ToString() == "sip:[email protected]", "The From header URI was not parsed correctly.");
                Assert.IsTrue(sipFromHeader.FromTag == null, "The From header Tag was not parsed correctly.");
            }