예제 #1
0
        public void Shall_clone_header()
        {
            GenericHeader original = new GenericHeader("From", "sip:[email protected]");
            GenericHeader cloned   = original.DeepClone();

            original.Name  = "To";
            original.Value = "sip:[email protected]";

            Assert.That(cloned.ToString(), Is.EqualTo("From: sip:[email protected]"));
            Assert.That(original.ToString(), Is.EqualTo("To: sip:[email protected]"));
        }
예제 #2
0
        public void Shall_stringify_header()
        {
            var header = new GenericHeader("From", "sip:[email protected]");

            Assert.That(header.ToString(), Is.EqualTo("From: sip:[email protected]"));
        }